Print the value of a capability as well.

This commit is contained in:
Philip Homburg 2007-08-07 11:21:57 +00:00
parent a80365f407
commit f352a3fb15

View file

@ -2443,8 +2443,8 @@ int devind;
default: str= "(unknown type)"; break; default: str= "(unknown type)"; break;
} }
printf(" @0x%x: capability type 0x%x: %s", printf(" @0x%x (0x%08x): capability type 0x%x: %s",
capptr, type, str); capptr, pci_attr_r32(devind, capptr), type, str);
if (type == 0x0f) if (type == 0x0f)
{ {
subtype= (pci_attr_r8(devind, capptr+2) & 0x07); subtype= (pci_attr_r8(devind, capptr+2) & 0x07);