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>
This commit is contained in:
Paul Menzel 2013-04-13 18:35:32 +02:00 committed by Ronald G. Minnich
parent b8eb0a802f
commit cb891de07f
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ static int parse_cbtable(u64 address)
int i, found = 0; int i, found = 0;
void *buf; void *buf;
debug("Looking for coreboot table at %lx\n", address); debug("Looking for coreboot table at %llx\n", address);
buf = map_memory(address); buf = map_memory(address);
/* look at every 16 bytes within 4K of the base */ /* look at every 16 bytes within 4K of the base */