diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-07-20 12:35:51 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:02 -0700 |
commit | 96963ac0127feaac0ded6b97efb4304e2efe76c4 (patch) | |
tree | 8301af9e2ed3f0a04bff1731f56b1f3bbb495f38 /lib/vbexport | |
parent | 6f10553ab38c6a94dff2b164cdbe9981dd016ace (diff) |
CHROMIUM: fix mismatch of format and argument type to debug printf
BUG=none
TEST=build cleanly
Change-Id: Id3ff5d25064d6a33b68a29ca7e30c6cd3c86136a
Reviewed-on: http://gerrit.chromium.org/gerrit/4371
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'lib/vbexport')
-rw-r--r-- | lib/vbexport/display.c | 6 | ||||
-rw-r--r-- | lib/vbexport/load_firmware.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/vbexport/display.c b/lib/vbexport/display.c index e12a30ac31..107136294f 100644 --- a/lib/vbexport/display.c +++ b/lib/vbexport/display.c @@ -60,7 +60,7 @@ static void print_on_center(const char *message) strcat(result, "."); strcat(result, "\n"); } - + left_space = (PRINT_MAX_COL - strlen(message)) / 2; for (i = 0; i < left_space; i++) strcat(result, "."); @@ -106,7 +106,7 @@ VbError_t VbExDisplayScreen(uint32_t screen_type) print_on_center("insert image invalid"); break; default: - VBDEBUG("Not a valid screen type: 0x%lx.\n", + VBDEBUG("Not a valid screen type: %08x.\n", screen_type); return 1; } @@ -150,7 +150,7 @@ VbError_t VbExDisplayImage(uint32_t x, uint32_t y, const ImageInfo *info, break; default: - VBDEBUG("Unsupported compression format: %lu\n", + VBDEBUG("Unsupported compression format: %08x\n", info->compression); return 1; } diff --git a/lib/vbexport/load_firmware.c b/lib/vbexport/load_firmware.c index 677a81df4c..426c55c300 100644 --- a/lib/vbexport/load_firmware.c +++ b/lib/vbexport/load_firmware.c @@ -36,7 +36,7 @@ VbError_t VbExHashFirmwareBody(VbCommonParams* cparams, if (firmware_index != VB_SELECT_FIRMWARE_A && firmware_index != VB_SELECT_FIRMWARE_B) { - VBDEBUG(PREFIX "Incorrect firmware index: %lu\n", + VBDEBUG(PREFIX "Incorrect firmware index: %08x\n", firmware_index); return 1; } |