diff options
author | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-21 03:21:55 +0000 |
---|---|---|
committer | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-21 03:21:55 +0000 |
commit | b96052d5918592ed185a487fd4d741de4f0edd5c (patch) | |
tree | 4891b1535d27cfdd875d59bf386aaa19a62f97d3 /src | |
parent | 68f30a77f136e1ff569f87171f276c93ed7bc33a (diff) | |
download | openocd+libswd-b96052d5918592ed185a487fd4d741de4f0edd5c.tar.gz openocd+libswd-b96052d5918592ed185a487fd4d741de4f0edd5c.tar.bz2 openocd+libswd-b96052d5918592ed185a487fd4d741de4f0edd5c.tar.xz openocd+libswd-b96052d5918592ed185a487fd4d741de4f0edd5c.zip |
C99 printf() -Werror fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2341 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/ocl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/ocl.c b/src/flash/ocl.c index 21ff8b7c..9997bc0b 100644 --- a/src/flash/ocl.c +++ b/src/flash/ocl.c @@ -145,9 +145,9 @@ static int ocl_erase(struct flash_bank_s *bank, int first, int last) if (dcc_buffer[1] != OCL_CMD_DONE) { if (dcc_buffer[0] == OCL_ERASE_ALL) - LOG_ERROR("loader response to OCL_ERASE_ALL 0x%08X", dcc_buffer[1]); + LOG_ERROR("loader response to OCL_ERASE_ALL 0x%08" PRIx32 "", dcc_buffer[1]); else - LOG_ERROR("loader response to OCL_ERASE_BLOCK 0x%08X", dcc_buffer[1]); + LOG_ERROR("loader response to OCL_ERASE_BLOCK 0x%08" PRIx32 "", dcc_buffer[1]); return ERROR_FLASH_OPERATION_FAILED; } @@ -253,7 +253,7 @@ static int ocl_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t offset if (dcc_buffer[0] != OCL_CMD_DONE) { - LOG_ERROR("loader response to OCL_FLASH_BLOCK 0x%08X", dcc_buffer[0]); + LOG_ERROR("loader response to OCL_FLASH_BLOCK 0x%08" PRIx32 "", dcc_buffer[0]); free(dcc_buffer); return ERROR_FLASH_OPERATION_FAILED; } @@ -295,7 +295,7 @@ static int ocl_probe(struct flash_bank_s *bank) if (dcc_buffer[0] != OCL_CMD_DONE) { - LOG_ERROR("loader response to OCL_PROBE 0x%08X", dcc_buffer[0]); + LOG_ERROR("loader response to OCL_PROBE 0x%08" PRIx32 "", dcc_buffer[0]); return ERROR_FLASH_OPERATION_FAILED; } |