[syslinux] [PATCH 1/6] Use z width specifier when printing size_t variable
Jonathan Boeing
jonathan.n.boeing at gmail.com
Mon Feb 9 19:01:34 PST 2015
Fixes the warning: format '%x' expects argument of type 'unsigned int', but
argument 2 has type 'size_t'
Signed-off-by: Jonathan Boeing <jonathan.n.boeing at gmail.com>
---
com32/lib/syslinux/load_linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c
index 06ae2a9..042f5a2 100644
--- a/com32/lib/syslinux/load_linux.c
+++ b/com32/lib/syslinux/load_linux.c
@@ -254,7 +254,7 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size,
cmdline_offset = calc_cmdline_offset(mmap, &hdr, cmdline_size,
real_mode_base,
real_mode_base + real_mode_size);
- dprintf("cmdline_offset at 0x%x\n", real_mode_base + cmdline_offset);
+ dprintf("cmdline_offset at 0x%zx\n", real_mode_base + cmdline_offset);
if (hdr.version < 0x020a) {
/*
--
2.3.0
More information about the Syslinux
mailing list