diff mbox

pciutils: correct VC status display

Message ID 4FA4FAB3.9060904@cadence.com
State Not Applicable
Headers show

Commit Message

J.L. Burr May 5, 2012, 10:02 a.m. UTC
I think there is a bug displaying the virtual channel status bits
"NegoPending" and "InProgress".  The wrong offset is being used.

Signed-off-by: John L. Burr <jlburr@cadence.com>
---


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/ls-ecaps.c b/ls-ecaps.c
index cd342aa..161c275 100644
--- a/ls-ecaps.c
+++ b/ls-ecaps.c
@@ -339,7 +339,7 @@  cap_vc(struct device *d, int where)
 	}
       rcap = get_conf_long(d, pos);
       rctrl = get_conf_long(d, pos+4);
-      rstatus = get_conf_word(d, pos+8);
+      rstatus = get_conf_word(d, pos+10);

       pat_pos = BITS(rcap, 24, 8);
       printf("Caps:\tPATOffset=%02x MaxTimeSlots=%d RejSnoopTrans%c\n",