From 68626a6d1b2f4b311d24dbbc5dd7c54d3aaba7ef Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Mon, 25 Jul 2011 17:02:02 -0700 Subject: [PATCH] Fix vboot_reference-firmware compilation error when building for coreboot. When compiling for coreboot the printf format helpers are not available (they come from the Insyde tree). The specifier is use in a very limited number of places, it is probably better to typecast the variable being printed to avoid compilation errors. This CL accomplishes just that. BUG=none TEST=manual: run the following commands: emerge-x86-alex -C sys-boot/chromeos-coreboot \ sys-boot/chromeos-u-boot\ chromeos-base/vboot_reference \ chromeos-base/vboot_reference-firmware emerge-x86-alex chromeos-bootimage observe the second one succeed. Change-Id: If19e3a583eb759ba5a21863d1b9b28636c7f00b0 Signed-off-by: Vadim Bendebury Reviewed-on: http://gerrit.chromium.org/gerrit/4690 --- firmware/lib/vboot_kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/lib/vboot_kernel.c b/firmware/lib/vboot_kernel.c index b3c06b3526..64c5cc58c8 100644 --- a/firmware/lib/vboot_kernel.c +++ b/firmware/lib/vboot_kernel.c @@ -385,7 +385,7 @@ VbError_t LoadKernel(LoadKernelParams* params) { lowest_version = combined_version; else { VBDEBUG(("Key block valid: %d\n", key_block_valid)); - VBDEBUG(("Combined version: %" PRIu32 "\n", combined_version)); + VBDEBUG(("Combined version: %u\n", (unsigned) combined_version)); } /* If we already have a good kernel, no need to read another