From cb891de07ffe605897010776fc1becc9589d3648 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Sat, 13 Apr 2013 18:35:32 +0200 Subject: cbmem: parse_cbtable: Use length modifier `ll` `u64` argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently on a 32-bit system cbmem fails to build due to `-Werror` and the following warning. $ make cc -O2 -Wall -Werror -iquote ../../src/include -iquote ../../src/src/arch/x86 -c -o cbmem.o cbmem.c […] cbmem.c: In function ‘parse_cbtable’: cbmem.c:135:2: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘u64’ [-Werror=format] cc1: all warnings being treated as errors […] Using the length modifier `ll` instead of `l` gets rid of this warning. Change-Id: Ib2656e27594c7aaa687aa84bf07042933f840e46 Signed-off-by: Paul Menzel Reviewed-on: http://review.coreboot.org/3084 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- util/cbmem/cbmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index f3f5add..ae5dbf6 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -132,7 +132,7 @@ static int parse_cbtable(u64 address) int i, found = 0; void *buf; - debug("Looking for coreboot table at %lx\n", address); + debug("Looking for coreboot table at %llx\n", address); buf = map_memory(address); /* look at every 16 bytes within 4K of the base */ -- cgit v1.1