From cc47d9dcf8fc918732b3c1e17b6877d5f2f41afe Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 21 Jan 2014 12:08:18 +0100 Subject: libpayload: hexdump: Use `p` as conversion specifier for pointers Change-Id: Ie5c279ef90bd9ed5e2624bf852dcff1f06531a13 Signed-off-by: Paul Menzel Reviewed-on: http://review.coreboot.org/4767 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- payloads/libpayload/libc/hexdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/libpayload/libc/hexdump.c b/payloads/libpayload/libc/hexdump.c index ee07e5a9e1..d2953a5552 100644 --- a/payloads/libpayload/libc/hexdump.c +++ b/payloads/libpayload/libc/hexdump.c @@ -49,7 +49,7 @@ void hexdump(const void *memory, size_t length) } if (all_zero < 2) { - printf("%08lx:", memory + i); + printf("%8p:", memory + i); for (j = 0; j < 16; j++) printf(" %02x", m[i + j]); printf(" "); -- cgit v1.2.3