path: root/com32/modules
diff options
authorMartin Str|mberg <ams@ludd.ltu.se>2014-12-18 21:34:00 -0500
committerGene Cumm <gene.cumm@gmail.com>2015-01-05 20:43:13 -0500
commit5270b9e01c7f5220c989eff7de3dac7c2ac69dd8 (patch)
tree81fb9d0814cfdea049ac63eb7ead90beb26abb44 /com32/modules
parent3106dcd19061b4443c5beba4f0e09412e8d37fbe (diff)
com32: Use z size specifier for printf-ing size_t variable
Use the z size specifier to printf-ing size_t variables to get rid of gcc warning format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ Author: Martin Str|mberg <ams@ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'com32/modules')
2 files changed, 3 insertions, 3 deletions
diff --git a/com32/modules/cptime.c b/com32/modules/cptime.c
index 0f5ffe61..315b9f95 100644
--- a/com32/modules/cptime.c
+++ b/com32/modules/cptime.c
@@ -216,7 +216,7 @@ int time_copy(char *fn, char do_simple, char do_verbose, size_t ibufsz, off_t ma
print_cp_result_long(fn, bcnt, bc, ec, ibufsz, do_verbose);
if (do_verbose)
- printf(" numrd %d bcnt %d bufsz %d i %d\n", numrd, bcnt, bufsz, i);
+ printf(" numrd %d bcnt %zd bufsz %zd i %d\n", numrd, bcnt, bufsz, i);
return rv;
} /* int time_copy(char *fn, char do_simple, int bufsz, off_t maxlen) */
diff --git a/com32/modules/pmload.c b/com32/modules/pmload.c
index 6808d38a..d6239ec2 100644
--- a/com32/modules/pmload.c
+++ b/com32/modules/pmload.c
@@ -84,10 +84,10 @@ int boot_raw(void *ptr, size_t len, addr_t where, char **argv)
dprintf("Initial memory map:\n");
- dprintf("Segment at 0x%08x len 0x%08x\n", where, len);
+ dprintf("Segment at 0x%08x len 0x%08zx\n", where, len);
if (syslinux_memmap_type(amap, where, len) != SMT_FREE) {
- printf("Memory segment at 0x%08x (len 0x%08x) is unavailable\n",
+ printf("Memory segment at 0x%08x (len 0x%08zx) is unavailable\n",
where, len);
goto bail; /* Memory region unavailable */