[syslinux:master] Use z width specifier when printing size_t variable

syslinux-bot for Jonathan Boeing jonathan.n.boeing at gmail.com
Sat May 16 10:00:09 PDT 2015


Commit-ID:  6c0ab8ba85a4324970bf37adfcc91b75ebd2a3ce
Gitweb:     http://www.syslinux.org/commit/6c0ab8ba85a4324970bf37adfcc91b75ebd2a3ce
Author:     Jonathan Boeing <jonathan.n.boeing at gmail.com>
AuthorDate: Mon, 9 Feb 2015 20:01:34 -0700
Committer:  Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sun, 3 May 2015 10:49:11 -0400

Use z width specifier when printing size_t variable

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 fc7f04f..26c39c1 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) {
 	/*


More information about the Syslinux-commits mailing list