diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-02-17 18:50:19 +0800 |
---|---|---|
committer | Che-Liang Chiou <clchiou@chromium.org> | 2011-02-17 18:50:19 +0800 |
commit | 39dfafd840e81012a52919f1853417da087ecf15 (patch) | |
tree | 5f99986b3342d643ca1cd19e22935aca1affdb06 | |
parent | 305e9e5e85592652eb362050679a3b0d8fada3be (diff) | |
download | vboot-39dfafd840e81012a52919f1853417da087ecf15.tar.gz |
Fix tree break due to printf argument type mismatch
BUG=none
TEST=emerge-${BOARD} vboot_reference
TBR=rspangler@chromium.org
Change-Id: I4cfec460fbc036d16f80b81cf8582209abb5945a
-rw-r--r-- | utility/load_firmware_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utility/load_firmware_test.c b/utility/load_firmware_test.c index c5f3cd59..e1d869ab 100644 --- a/utility/load_firmware_test.c +++ b/utility/load_firmware_test.c @@ -159,7 +159,7 @@ int DriveLoadFirmware(const void* base_of_rom, const void* fmap) { } printf("firmware root key blob at 0x%08" PRIx64 "\n", - lfp.firmware_root_key_blob - base_of_rom); + (uint64_t) (lfp.firmware_root_key_blob - base_of_rom)); /* Loop to initialize firmware key and data A / B */ for (index = 0; index < 2; ++index) { @@ -170,7 +170,7 @@ int DriveLoadFirmware(const void* base_of_rom, const void* fmap) { } printf("verification block %d at 0x%08" PRIx64 "\n", index, - *vblock_ptr[index] - base_of_rom); + (uint64_t) (*vblock_ptr[index] - base_of_rom)); printf("verification block %d size is 0x%08" PRIx64 "\n", index, *vsize_ptr[index]); @@ -181,7 +181,7 @@ int DriveLoadFirmware(const void* base_of_rom, const void* fmap) { } printf("firmware %c at 0x%08" PRIx64 "\n", "AB"[index], - (void*) ci.firmware[index].fw - base_of_rom); + (uint64_t) ((void*) ci.firmware[index].fw - base_of_rom)); printf("firmware %c size is 0x%08" PRIx64 "\n", "AB"[index], ci.firmware[index].size); } |