git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-91
+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
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)