Skip to contentSkip to conversation

pciutils: correct VC status display

PATCH New J.L. Burr 1 participant 1 message May 5, 2012 PCI

lore
Share & tools
lore

J.L. Burr

author
#0 lore raw

PATCH 1/1 pciutils: correct VC status display

I think there is a bug displaying the virtual channel status bits "NegoPending" and "InProgress". The wrong offset is being used.

---

ls-ecaps.c +1 -1
index cd342aa..161c275 100644
@@ -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",