From 8eed67b3ab1a30dc71a5c279b2c10234a2b41a77 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Sat, 21 Oct 2017 11:22:57 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/22131 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Martin Roth --- src/drivers/intel/fsp2_0/hob_verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.3