diff options
author | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-21 03:22:04 +0000 |
---|---|---|
committer | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-21 03:22:04 +0000 |
commit | 4f79ba3ca0079776ecd8d898c5c6fe390b09dfab (patch) | |
tree | 9e2df15a4756aced0109752e0b5e524b9c5707ca /src/flash | |
parent | ac05113f7aac00a096ba3e63cc86680487d59795 (diff) | |
download | openocd_libswd-4f79ba3ca0079776ecd8d898c5c6fe390b09dfab.tar.gz openocd_libswd-4f79ba3ca0079776ecd8d898c5c6fe390b09dfab.tar.bz2 openocd_libswd-4f79ba3ca0079776ecd8d898c5c6fe390b09dfab.tar.xz openocd_libswd-4f79ba3ca0079776ecd8d898c5c6fe390b09dfab.zip |
C99 printf() -Werror fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2343 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/ecos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/ecos.c b/src/flash/ecos.c index 5f0fffbf..5b7ac7ca 100644 --- a/src/flash/ecos.c +++ b/src/flash/ecos.c @@ -205,7 +205,7 @@ static int loadDriver(ecosflash_flash_bank_t *info) } target_write_buffer(target, image.sections[i].base_address, buf_cnt, buffer); image_size += buf_cnt; - LOG_DEBUG("%u byte written at address 0x%8.8x", buf_cnt, image.sections[i].base_address); + LOG_DEBUG("%" PRIu32 " byte written at address 0x%8.8" PRIx32 "", buf_cnt, image.sections[i].base_address); free(buffer); } @@ -287,7 +287,7 @@ static int eCosBoard_erase(ecosflash_flash_bank_t *info, uint32_t address, uint3 if (flashErr != 0x0) { - LOG_ERROR("Flash erase failed with %d (%s)\n", flashErr, flash_errmsg(flashErr)); + LOG_ERROR("Flash erase failed with %d (%s)\n", (int)flashErr, flash_errmsg(flashErr)); return ERROR_FAIL; } @@ -346,7 +346,7 @@ static int eCosBoard_flash(ecosflash_flash_bank_t *info, void *data, uint32_t ad if (flashErr != 0x0) { - LOG_ERROR("Flash prog failed with %d (%s)\n", flashErr, flash_errmsg(flashErr)); + LOG_ERROR("Flash prog failed with %d (%s)\n", (int)flashErr, flash_errmsg(flashErr)); return ERROR_FAIL; } } |