diff options
author | Paul Menzel <paulepanter@users.sourceforge.net> | 2017-10-21 11:22:57 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-11-03 15:23:06 +0000 |
commit | 8eed67b3ab1a30dc71a5c279b2c10234a2b41a77 (patch) | |
tree | bd489e3fe8a553b53abd4eeb54a9b4ffbf194760 /src/drivers | |
parent | 11015342b4fb7a799bfdf7529da2f190ad2c447c (diff) | |
download | coreboot-8eed67b3ab1a30dc71a5c279b2c10234a2b41a77.tar.xz |
drivers/intel/fsp2_0/hob_verify: Correct conversion specifier
Use the correct conversion specifier for `size_t` to fix the error
below.
```
src/drivers/intel/fsp2_0/hob_verify.c:31:4: error: format '%lx' expects \
argument of type 'long unsigned int', but argument 4 has type \
'size_t {aka unsigned int}' [-Werror=format=]
"FSP_BOOTLOADER_TOLUM_SIZE: 0x%08llx < 0x%08lx\n",
^
range_entry_size(&tolum), cbmem_overhead_size());
~~~~~~~~~~~~~~~~~~~~~
```
Found-by: gcc (Debian 7.2.0-8) 7.2.0
Change-Id: I4631672211095f9934925e9bd230ccbf63c736af
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://review.coreboot.org/22131
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/intel/fsp2_0/hob_verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/intel/fsp2_0/hob_verify.c b/src/drivers/intel/fsp2_0/hob_verify.c index 358db159d9..2841027c5a 100644 --- a/src/drivers/intel/fsp2_0/hob_verify.c +++ b/src/drivers/intel/fsp2_0/hob_verify.c @@ -28,7 +28,7 @@ void fsp_verify_memory_init_hobs(void) die("9.3: FSP_BOOTLOADER_TOLUM_HOB missing!\n"); if (range_entry_size(&tolum) < cbmem_overhead_size()) { printk(BIOS_CRIT, - "FSP_BOOTLOADER_TOLUM_SIZE: 0x%08llx < 0x%08lx\n", + "FSP_BOOTLOADER_TOLUM_SIZE: 0x%08llx < 0x%08zx\n", range_entry_size(&tolum), cbmem_overhead_size()); die("FSP_BOOTLOADER_TOLUM_HOB too small!\n"); } |