summaryrefslogtreecommitdiff
path: root/src/drivers/elog
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>2013-06-26 20:04:49 +0200
committerNico Huber <nico.huber@secunet.com>2013-06-28 11:04:44 +0200
commitbc2c9efd56a1b7d5c9b97132423ac176b4d21b74 (patch)
treefd1de3b0ea64dd0e674f26b321ee0af8c76d3b79 /src/drivers/elog
parentc9246da4ddff9fef2bb26d05d87d1f616124b91e (diff)
downloadcoreboot-bc2c9efd56a1b7d5c9b97132423ac176b4d21b74.tar.xz
ELOG: Fix warning to fix the compilation.
Without that fix we have: src/drivers/elog/elog.c: In function 'elog_is_header_valid': src/drivers/elog/elog.c:213:3: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format] Change-Id: I71b80a94c03a04eedb688ae107d92c05a878315e Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> Reviewed-on: http://review.coreboot.org/3551 Reviewed-by: Nico Huber <nico.huber@secunet.com> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers/elog')
-rw-r--r--src/drivers/elog/elog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c
index 1a794d90ab..71e908b4a9 100644
--- a/src/drivers/elog/elog.c
+++ b/src/drivers/elog/elog.c
@@ -210,7 +210,7 @@ static int elog_is_header_valid(struct elog_header *header)
return 0;
}
if (header->header_size != sizeof(*header)) {
- printk(BIOS_ERR, "ELOG: header size mismatch %u != %u\n",
+ printk(BIOS_ERR, "ELOG: header size mismatch %u != %zu\n",
header->header_size, sizeof(*header));
return 0;
}