libpayload: hexdump: Use p
as conversion specifier for pointers
Change-Id: Ie5c279ef90bd9ed5e2624bf852dcff1f06531a13 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/4767 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
9d3e131461
commit
cc47d9dcf8
@ -49,7 +49,7 @@ void hexdump(const void *memory, size_t length)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (all_zero < 2) {
|
if (all_zero < 2) {
|
||||||
printf("%08lx:", memory + i);
|
printf("%8p:", memory + i);
|
||||||
for (j = 0; j < 16; j++)
|
for (j = 0; j < 16; j++)
|
||||||
printf(" %02x", m[i + j]);
|
printf(" %02x", m[i + j]);
|
||||||
printf(" ");
|
printf(" ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user