aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib/acpi/xsdt.c
diff options
context:
space:
mode:
authorMartin Str|mberg <ams@ludd.ltu.se>2014-12-17 15:28:14 -0500
committerGene Cumm <gene.cumm@gmail.com>2015-01-05 20:43:13 -0500
commit5932f124bce94b662b0b7dc9b79cdc4802d4731c (patch)
tree22f2892da5f6003b791cac8c7f03e5c4337271c3 /com32/gpllib/acpi/xsdt.c
parent4e9a04186557d679a39de1ca18cadc1fbb174250 (diff)
downloadsyslinux-5932f124bce94b662b0b7dc9b79cdc4802d4731c.tar.gz
syslinux-5932f124bce94b662b0b7dc9b79cdc4802d4731c.tar.xz
syslinux-5932f124bce94b662b0b7dc9b79cdc4802d4731c.zip
com32: change '%llx' to use PRIx64
Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ Use <inttypes.h> PRIx64 instead of llx to get rid of gcc warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ Author: Martin Str|mberg <ams@ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'com32/gpllib/acpi/xsdt.c')
-rw-r--r--com32/gpllib/acpi/xsdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/gpllib/acpi/xsdt.c b/com32/gpllib/acpi/xsdt.c
index 208abc67..976c8965 100644
--- a/com32/gpllib/acpi/xsdt.c
+++ b/com32/gpllib/acpi/xsdt.c
@@ -63,7 +63,7 @@ int parse_xsdt(s_acpi * acpi)
/* Let's grab the pointed table header */
char address[16] = { 0 };
- sprintf(address, "%llx", *p);
+ sprintf(address, "%" PRIx64 "x", *p);
uint64_t *pointed_address = (uint64_t *)strtoul(address, NULL, 16);
x->entry[x->entry_count] = pointed_address;