summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 03:21:59 +0000
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 03:21:59 +0000
commitac05113f7aac00a096ba3e63cc86680487d59795 (patch)
tree39671c796c1a88473cd79b8d5b3821bebdb6ada9
parentb96052d5918592ed185a487fd4d741de4f0edd5c (diff)
downloadopenocd_libswd-ac05113f7aac00a096ba3e63cc86680487d59795.tar.gz
openocd_libswd-ac05113f7aac00a096ba3e63cc86680487d59795.tar.bz2
openocd_libswd-ac05113f7aac00a096ba3e63cc86680487d59795.tar.xz
openocd_libswd-ac05113f7aac00a096ba3e63cc86680487d59795.zip
C99 printf() -Werror fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2342 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/flash/str7x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/str7x.c b/src/flash/str7x.c
index 78c08140..43139521 100644
--- a/src/flash/str7x.c
+++ b/src/flash/str7x.c
@@ -259,7 +259,7 @@ static int str7x_erase(struct flash_bank_s *bank, int first, int last)
sectors |= str7x_info->sector_bits[i];
}
- LOG_DEBUG("sectors: 0x%x", sectors);
+ LOG_DEBUG("sectors: 0x%" PRIx32 "", sectors);
/* clear FLASH_ER register */
target_write_u32(target, str7x_get_flash_adr(bank, FLASH_ER), 0x0);
@@ -281,7 +281,7 @@ static int str7x_erase(struct flash_bank_s *bank, int first, int last)
if (retval)
{
- LOG_ERROR("error erasing flash bank, FLASH_ER: 0x%x", retval);
+ LOG_ERROR("error erasing flash bank, FLASH_ER: 0x%" PRIx32 "", retval);
return ERROR_FLASH_OPERATION_FAILED;
}
@@ -335,7 +335,7 @@ static int str7x_protect(struct flash_bank_s *bank, int set, int first, int last
retval = str7x_result(bank);
- LOG_DEBUG("retval: 0x%8.8x", retval);
+ LOG_DEBUG("retval: 0x%8.8" PRIx32 "", retval);
if (retval & FLASH_ERER)
return ERROR_FLASH_SECTOR_NOT_ERASED;
@@ -481,7 +481,7 @@ static int str7x_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t offs
if (offset & 0x7)
{
- LOG_WARNING("offset 0x%x breaks required 8-byte alignment", offset);
+ LOG_WARNING("offset 0x%" PRIx32 " breaks required 8-byte alignment", offset);
return ERROR_FLASH_DST_BREAKS_ALIGNMENT;
}