]> mj.ucw.cz Git - pciutils.git/blobdiff - ls-caps.c
lspci: Decode Null Capability
[pciutils.git] / ls-caps.c
index 31352249e7b953e69ca39ff482f81012fd533de5..8b707c29ad504d77707edb96ca441d25f8b9f95c 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -1536,6 +1536,9 @@ show_caps(struct device *d, int where)
            }
          switch (id)
            {
+           case PCI_CAP_ID_NULL:
+             printf("Null\n");
+             break;
            case PCI_CAP_ID_PM:
              cap_pm(d, where, cap);
              break;
@@ -1599,7 +1602,7 @@ show_caps(struct device *d, int where)
              cap_ea(d, where, cap);
              break;
            default:
-             printf("#%02x [%04x]\n", id, cap);
+             printf("Capability ID %#02x [%04x]\n", id, cap);
            }
          where = next;
        }