Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343750
b: refs/heads/master
c: 49300af
h: refs/heads/master
v: v3
  • Loading branch information
Saurav Kashyap authored and James Bottomley committed Nov 30, 2012
1 parent 5a943e6 commit 382fc80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e98df229e915fdc38451d6f2de94e0589793288
refs/heads/master: 49300af727bf095bff9dca71547b21a05f92b243
14 changes: 11 additions & 3 deletions trunk/drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,20 @@ qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str)
(BIT_4 | BIT_5 | BIT_6 | BIT_7 | BIT_8 | BIT_9)) >> 4;

strcpy(str, "PCIe (");
if (lspeed == 1)
switch (lspeed) {
case 1:
strcat(str, "2.5GT/s ");
else if (lspeed == 2)
break;
case 2:
strcat(str, "5.0GT/s ");
else
break;
case 3:
strcat(str, "8.0GT/s ");
break;
default:
strcat(str, "<unknown> ");
break;
}
snprintf(lwstr, sizeof(lwstr), "x%d)", lwidth);
strcat(str, lwstr);

Expand Down

0 comments on commit 382fc80

Please sign in to comment.