]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Fixed decoding of link status register.
authorMartin Mares <mj@ucw.cz>
Mon, 13 Mar 2006 19:11:50 +0000 (19:11 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:18:34 +0000 (14:18 +0200)
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-91

ChangeLog
lspci.c

index cbcfe7b14aee932292e25a7adb5079d8cb61ed2f..6a9acb43e684dac7bbda09000102c05fc4a99352 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-04  Martin Mares  <mj@ucw.cz>
+
+       * lspci.c (show_express_link): Fixed decoding of link status register.
+       Thanks to Roland Dreier for his report.
+
 2005-12-12  Martin Mares  <mj@ucw.cz>
 
        * lib/nbsd-libpci.c: If libpci is used by an ordinary user, allow
diff --git a/lspci.c b/lspci.c
index 5a9251e800a5086f543d1442cd13c1fb395f045c..b4ba1357ec3a876c74c4aedc0b99f8411257abde 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1129,7 +1129,7 @@ static void show_express_link(struct device *d, int where, int type)
        FLAG(w, PCI_EXP_LNKCTL_XSYNCH));
   w = get_conf_word(d, where + PCI_EXP_LNKSTA);
   printf("\t\tLink: Speed %s, Width x%d\n",
-       link_speed(t & PCI_EXP_LNKSTA_SPEED), (t & PCI_EXP_LNKSTA_WIDTH) >> 4);
+       link_speed(w & PCI_EXP_LNKSTA_SPEED), (w & PCI_EXP_LNKSTA_WIDTH) >> 4);
 }
 
 static const char *indicator(int code)