diff options
author | Paul Menzel <paulepanter@users.sourceforge.net> | 2013-04-13 18:35:32 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-04-14 02:06:21 +0200 |
commit | cb891de07ffe605897010776fc1becc9589d3648 (patch) | |
tree | 1881ca525f8a227b820fb5122c580487b47559df | |
parent | b8eb0a802f777bd4b2c24bca571afc1d89352006 (diff) | |
download | coreboot-cb891de07ffe605897010776fc1becc9589d3648.tar.xz |
cbmem: parse_cbtable: Use length modifier `ll` `u64` argument
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 <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/3084
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r-- | util/cbmem/cbmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index f3f5add2a7..ae5dbf6719 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 */ |