From 0e78ef8adf9d19829156accf4ff26ee96e34f9b2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 13 Mar 2006 19:11:50 +0000 Subject: [PATCH] Fixed decoding of link status register. git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-91 --- ChangeLog | 5 +++++ lspci.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.2