aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/dmi.c
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/sysdump/dmi.c
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/sysdump/dmi.c')
-rw-r--r--com32/sysdump/dmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/sysdump/dmi.c b/com32/sysdump/dmi.c
index ce25efa4..7c39b7bc 100644
--- a/com32/sysdump/dmi.c
+++ b/com32/sysdump/dmi.c
@@ -65,7 +65,7 @@ static void dump_smbios(struct upload_backend *be, size_t dptr)
struct smbios_header smx = *smb;
char filename[32];
- snprintf(filename, sizeof filename, "dmi/%05x.%08x",
+ snprintf(filename, sizeof filename, "dmi/%05zx.%08x",
dptr, smb->dmi.tbladdr);
cpio_hdr(be, MODE_FILE, smb->dmi.tbllen + 32, filename);
@@ -90,7 +90,7 @@ static void dump_old_dmi(struct upload_backend *be, size_t dptr)
} fake;
char filename[32];
- snprintf(filename, sizeof filename, "dmi/%05x.%08x",
+ snprintf(filename, sizeof filename, "dmi/%05zx.%08x",
dptr, dmi->tbladdr);
cpio_hdr(be, MODE_FILE, dmi->tbllen + 32, filename);