]> mj.ucw.cz Git - pciutils.git/blobdiff - ls-caps.c
lspci: Replace unsigned long long type by u64 and %llx format by PCI_U64_FMT_X
[pciutils.git] / ls-caps.c
index 79b61cd882e57a2a92181c742f5a16400ad2185f..b0caa50943d69619a2b9e000e692661112a9b03b 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -578,7 +578,7 @@ cap_ht(struct device *d, int where, int cmd)
            break;
          offl = get_conf_long(d, where + PCI_HT_MSIM_ADDR_LO);
          offh = get_conf_long(d, where + PCI_HT_MSIM_ADDR_HI);
-         printf("\t\tMapping Address Base: %016llx\n", ((unsigned long long)offh << 32) | (offl & ~0xfffff));
+         printf("\t\tMapping Address Base: %016" PCI_U64_FMT_X "\n", ((u64)offh << 32) | (offl & ~0xfffff));
        }
       break;
     case PCI_HT_CMD_TYP_DR: