diff options
author | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-21 03:20:26 +0000 |
---|---|---|
committer | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-21 03:20:26 +0000 |
commit | 96c8ff3d0861d1bcd6a4e1c83130dc1626e27883 (patch) | |
tree | a88c6183f3e14f8e7eff2337c5611c33501f5399 | |
parent | aa0b69ad5f805b112b928f17bae65cb160f2b72b (diff) | |
download | openocd_libswd-96c8ff3d0861d1bcd6a4e1c83130dc1626e27883.tar.gz openocd_libswd-96c8ff3d0861d1bcd6a4e1c83130dc1626e27883.tar.bz2 openocd_libswd-96c8ff3d0861d1bcd6a4e1c83130dc1626e27883.tar.xz openocd_libswd-96c8ff3d0861d1bcd6a4e1c83130dc1626e27883.zip |
C99 printf() -Werror fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2335 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/flash/str9xpec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c index f1ce6d95..c735b6b9 100644 --- a/src/flash/str9xpec.c +++ b/src/flash/str9xpec.c @@ -652,7 +652,7 @@ static int str9xpec_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t o 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; } @@ -831,7 +831,7 @@ static int str9xpec_handle_part_id_command(struct command_context_s *cmd_ctx, ch idcode = buf_get_u32(buffer, 0, 32); - command_print(cmd_ctx, "str9xpec part id: 0x%8.8x", idcode); + command_print(cmd_ctx, "str9xpec part id: 0x%8.8" PRIx32 "", idcode); free(buffer); |