]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Fix formatting of 64-bit integers
authorMartin Mares <mj@ucw.cz>
Sat, 21 Jun 2025 15:19:12 +0000 (17:19 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 21 Jun 2025 15:19:12 +0000 (17:19 +0200)
PCI_U64_FMT_X is needed.

ls-caps-vendor.c
ls-ecaps.c

index a69ddd6915224703fcd910452ebf7003253ec4cd..ead872ec182725898798622feda7f8bb09789bf2 100644 (file)
@@ -64,7 +64,7 @@ show_vendor_caps_virtio(struct device *d, int where, int cap)
   else {
     offset_hi = get_conf_long(d, where + 16);
     size_hi = get_conf_long(d, where + 20);
-    printf("\t\tBAR=%d offset=%016lx size=%016lx id=%d",
+    printf("\t\tBAR=%d offset=%016" PCI_U64_FMT_X " size=%016" PCI_U64_FMT_X " id=%d",
           get_conf_byte(d, where +  4),
           (u64) offset | (u64) offset_hi << 32,
           (u64) size | (u64) size_hi << 32,
index 63a79333850c5f4436565b340c4029ed971cc043..0bb7412467e020dfe414c59a63fbd130568a6361 100644 (file)
@@ -1801,7 +1801,7 @@ cap_ide(struct device *d, int where)
             base = get_conf_long(d, off + 8);
             base <<= 32;
             base |= PCI_IDE_SEL_ADDR_1_BASE_LOW(l) << 20;
-            printf("\t\t%sSelectiveIDE#%d RID#%d: Valid%c Base=%lx Limit=%lx\n",
+            printf("\t\t%sSelectiveIDE#%d RID#%d: Valid%c Base=%" PCI_U64_FMT_X " Limit=%" PCI_U64_FMT_X "\n",
               offstr(offs, off),
               i,
               j,