drivers/elog: Fix debug build errors
Add hexdump.c to Makefile.inc and change an elog_debug format to use %z for size_t arguments. This corrects build errors when ELOG_DEBUG is used. Change-Id: I3d5547eed8ada7c4bdcbbb8bb9d6965ade73beda Signed-off-by: John E. Kabat Jr <john.kabat@scarletltd.com> Reviewed-on: https://review.coreboot.org/21769 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
14cb828f4f
commit
d45011c9c6
|
@ -324,8 +324,8 @@ static void elog_nv_write(size_t offset, size_t size)
|
|||
|
||||
address = rdev_mmap(rdev, offset, size);
|
||||
|
||||
elog_debug("%s(address=0x%p offset=0x%08x size=%u)\n", __func__,
|
||||
address, offset, size);
|
||||
elog_debug("%s(address=0x%p offset=0x%08zx size=%zu)\n", __func__,
|
||||
address, offset, size);
|
||||
|
||||
if (address == NULL)
|
||||
return;
|
||||
|
|
|
@ -165,6 +165,7 @@ bootblock-y += hexdump.c
|
|||
ramstage-y += hexdump.c
|
||||
romstage-y += hexdump.c
|
||||
verstage-y += hexdump.c
|
||||
smm-y += hexdump.c
|
||||
|
||||
bootblock-$(CONFIG_REG_SCRIPT) += reg_script.c
|
||||
verstage-$(CONFIG_REG_SCRIPT) += reg_script.c
|
||||
|
|
Loading…
Reference in New Issue