aboutsummaryrefslogtreecommitdiffstats
path: root/com32/mboot
diff options
context:
space:
mode:
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/mboot
parent3106dcd19061b4443c5beba4f0e09412e8d37fbe (diff)
downloadsyslinux-5270b9e01c7f5220c989eff7de3dac7c2ac69dd8.tar.gz
syslinux-5270b9e01c7f5220c989eff7de3dac7c2ac69dd8.tar.xz
syslinux-5270b9e01c7f5220c989eff7de3dac7c2ac69dd8.zip
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/mboot')
-rw-r--r--com32/mboot/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/mboot/map.c b/com32/mboot/map.c
index 84f3b20c..4b0baa2a 100644
--- a/com32/mboot/map.c
+++ b/com32/mboot/map.c
@@ -61,7 +61,7 @@ addr_t map_data(const void *data, size_t len, size_t align, int flags)
return 0;
}
- dprintf("Mapping 0x%08x bytes (%#x pad) at 0x%08x\n", len, pad, start);
+ dprintf("Mapping 0x%08zx bytes (%#x pad) at 0x%08x\n", len, pad, start);
if (start + len + pad > mboot_high_water_mark)
mboot_high_water_mark = start + len + pad;