aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/meminfo.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/modules/meminfo.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/modules/meminfo.c')
-rw-r--r--com32/modules/meminfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/modules/meminfo.c b/com32/modules/meminfo.c
index fc04792f..c8f953bf 100644
--- a/com32/modules/meminfo.c
+++ b/com32/modules/meminfo.c
@@ -71,12 +71,12 @@ static void dump_e820(void)
if (oreg.ecx.l >= 24) {
/* ebx base length end type */
- printf("%8x %016llx %016llx %016llx %d [%x]",
+ printf("%8x %016" PRIx64 "x %016" PRIx64 "x %016" PRIx64 "x %d [%x]",
ireg.ebx.l, ed.base, ed.len, ed.base + ed.len, ed.type,
ed.extattr);
} else {
/* ebx base length end */
- printf("%8x %016llx %016llx %016llx %d [-]",
+ printf("%8x %016" PRIx64 "x %016" PRIx64 "x %016" PRIx64 "x %d [-]",
ireg.ebx.l, ed.base, ed.len, ed.base + ed.len, ed.type);
ed.extattr = 1;
}