diff options
author | John E. Kabat Jr <john.kabat@scarletltd.com> | 2017-09-29 11:23:35 -0600 |
---|---|---|
committer | Marc Jones <marc@marcjonesconsulting.com> | 2017-10-16 16:10:51 +0000 |
commit | d45011c9c63afb6f4b25b8ae92d7b74cc873b15c (patch) | |
tree | f029f2347a0e8a3fa7278894d1e1ff740c2d6429 /src/drivers | |
parent | 14cb828f4fd818c4d9d1bcf80db9e5a9fc2df19f (diff) |
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>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/elog/elog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 1c175614c5..c8f221ac0b 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -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; |