aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index e4fd19281943..67f7b56e1b0b 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -494,12 +494,20 @@ qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str)
494 (BIT_4 | BIT_5 | BIT_6 | BIT_7 | BIT_8 | BIT_9)) >> 4; 494 (BIT_4 | BIT_5 | BIT_6 | BIT_7 | BIT_8 | BIT_9)) >> 4;
495 495
496 strcpy(str, "PCIe ("); 496 strcpy(str, "PCIe (");
497 if (lspeed == 1) 497 switch (lspeed) {
498 case 1:
498 strcat(str, "2.5GT/s "); 499 strcat(str, "2.5GT/s ");
499 else if (lspeed == 2) 500 break;
501 case 2:
500 strcat(str, "5.0GT/s "); 502 strcat(str, "5.0GT/s ");
501 else 503 break;
504 case 3:
505 strcat(str, "8.0GT/s ");
506 break;
507 default:
502 strcat(str, "<unknown> "); 508 strcat(str, "<unknown> ");
509 break;
510 }
503 snprintf(lwstr, sizeof(lwstr), "x%d)", lwidth); 511 snprintf(lwstr, sizeof(lwstr), "x%d)", lwidth);
504 strcat(str, lwstr); 512 strcat(str, lwstr);
505 513