summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2011-07-25 17:02:02 -0700
committerVadim Bendebury <vbendeb@chromium.org>2011-07-26 10:40:03 -0700
commit68626a6d1b2f4b311d24dbbc5dd7c54d3aaba7ef (patch)
tree375d01ea23bf70c07e3dac309044a6948d420b31
parentdfb0175a5b077e2c3c2809ee71c9b3368d91dbd9 (diff)
downloadvboot-68626a6d1b2f4b311d24dbbc5dd7c54d3aaba7ef.tar.gz
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 <vbendeb@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/4690
-rw-r--r--firmware/lib/vboot_kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/lib/vboot_kernel.c b/firmware/lib/vboot_kernel.c
index b3c06b35..64c5cc58 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