summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 03:19:55 +0000
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 03:19:55 +0000
commitbf509dbafa4957ca635c92dc2ea5389e14255a7f (patch)
treeb9789bd2c86cd834ec12fa6ba9506abd8fbf0b83 /src
parenta388736c41270b2020b742d11b4fb5283b176117 (diff)
downloadopenocd+libswd-bf509dbafa4957ca635c92dc2ea5389e14255a7f.tar.gz
openocd+libswd-bf509dbafa4957ca635c92dc2ea5389e14255a7f.tar.bz2
openocd+libswd-bf509dbafa4957ca635c92dc2ea5389e14255a7f.tar.xz
openocd+libswd-bf509dbafa4957ca635c92dc2ea5389e14255a7f.zip
C99 printf() -Werror fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2330 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/flash/stm32x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/stm32x.c b/src/flash/stm32x.c
index c9ccbec2..a022b74c 100644
--- a/src/flash/stm32x.c
+++ b/src/flash/stm32x.c
@@ -118,7 +118,7 @@ static uint32_t stm32x_wait_status_busy(flash_bank_t *bank, int timeout)
/* wait for busy to clear */
while (((status = stm32x_get_flash_status(bank)) & FLASH_BSY) && (timeout-- > 0))
{
- LOG_DEBUG("status: 0x%x", status);
+ LOG_DEBUG("status: 0x%" PRIx32 "", status);
alive_sleep(1);
}
/* Clear but report errors */
@@ -614,7 +614,7 @@ static int stm32x_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t off
if (offset & 0x1)
{
- LOG_WARNING("offset 0x%x breaks required 2-byte alignment", offset);
+ LOG_WARNING("offset 0x%" PRIx32 " breaks required 2-byte alignment", offset);
return ERROR_FLASH_DST_BREAKS_ALIGNMENT;
}
@@ -720,7 +720,7 @@ static int stm32x_probe(struct flash_bank_s *bank)
/* read stm32 device id register */
target_read_u32(target, 0xE0042000, &device_id);
- LOG_INFO( "device id = 0x%08x", device_id );
+ LOG_INFO( "device id = 0x%08" PRIx32 "", device_id );
/* get flash size from target */
if (target_read_u16(target, 0x1FFFF7E0, &num_pages) != ERROR_OK)
@@ -1061,7 +1061,7 @@ static int stm32x_handle_options_read_command(struct command_context_s *cmd_ctx,
}
target_read_u32(target, STM32_FLASH_OBR, &optionbyte);
- command_print(cmd_ctx, "Option Byte: 0x%x", optionbyte);
+ command_print(cmd_ctx, "Option Byte: 0x%" PRIx32 "", optionbyte);
if (buf_get_u32((uint8_t*)&optionbyte, OPT_ERROR, 1))
command_print(cmd_ctx, "Option Byte Complement Error");