]> mj.ucw.cz Git - pciutils.git/blobdiff - ls-caps.c
Updated fixed-version references to pci_fill_info
[pciutils.git] / ls-caps.c
index 276a94d6951781a2078da2458de507460d99d1cd..c145ed66bb7048574d6f728f8c7d5d8f7bfb49f6 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -1261,8 +1261,8 @@ show_caps(struct device *d, int where)
 
   if (get_conf_word(d, PCI_STATUS) & PCI_STATUS_CAP_LIST)
     {
-      where = get_conf_byte(d, where) & ~3;
       byte been_there[256];
+      where = get_conf_byte(d, where) & ~3;
       memset(been_there, 0, 256);
       while (where)
        {
@@ -1315,7 +1315,7 @@ show_caps(struct device *d, int where)
              cap_ht(d, where, cap);
              break;
            case PCI_CAP_ID_VNDR:
-             printf("Vendor Specific Information: Len=%02x <?>\n", BITS(cap, 0, 8));
+             show_vendor_caps(d, where, cap);
              break;
            case PCI_CAP_ID_DBG:
              cap_debug_port(cap);