From: Martin Mares Date: Mon, 13 Mar 2006 19:11:50 +0000 (+0000) Subject: Fixed decoding of link status register. X-Git-Tag: v3.0.0~74 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0e78ef8adf9d19829156accf4ff26ee96e34f9b2;p=pciutils.git Fixed decoding of link status register. git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-91 --- diff --git a/ChangeLog b/ChangeLog index cbcfe7b..6a9acb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-04 Martin Mares + + * lspci.c (show_express_link): Fixed decoding of link status register. + Thanks to Roland Dreier for his report. + 2005-12-12 Martin Mares * lib/nbsd-libpci.c: If libpci is used by an ordinary user, allow diff --git a/lspci.c b/lspci.c index 5a9251e..b4ba135 100644 --- 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)