]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
pciutils: correct VC status display
authorJ.L. Burr <jlburr@cadence.com>
Sat, 5 May 2012 10:02:27 +0000 (06:02 -0400)
committerMartin Mares <mj@ucw.cz>
Mon, 28 May 2012 13:36:25 +0000 (15:36 +0200)
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>
ls-ecaps.c

index cd342aab833634712d8117a4e1f921326d3e20c3..161c2753c3f20bfcef92dc6ab53ede83fd48eca1 100644 (file)
@@ -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",