From: Martin Mares Date: Sat, 21 Jun 2025 15:19:12 +0000 (+0200) Subject: Fix formatting of 64-bit integers X-Git-Tag: v3.14.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b78c087b3d49aaeb8c74fce01337174a8091773f;p=thirdparty%2Fpciutils.git Fix formatting of 64-bit integers PCI_U64_FMT_X is needed. --- diff --git a/ls-caps-vendor.c b/ls-caps-vendor.c index a69ddd6..ead872e 100644 --- a/ls-caps-vendor.c +++ b/ls-caps-vendor.c @@ -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, diff --git a/ls-ecaps.c b/ls-ecaps.c index 63a7933..0bb7412 100644 --- a/ls-ecaps.c +++ b/ls-ecaps.c @@ -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,