aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.c
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2014-04-28 15:05:02 +0400
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2014-05-05 20:18:38 +0000
commitb1a1a48b30243d3582a8443f4baf3dd500683eda (patch)
tree8cc82a9548c72fdd1fe4aae3a86fe812cf44605c /src/target/target.c
parent66c6665288402ef8463e844f8873b2c8d3a9949d (diff)
Fix some C99 format specifiers
As exposed by arm-none-eabi build, fix the wrong modifiers. Change-Id: Ia6ce7c5c1d40e95059525c3e5d81b752df2fea7c Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2122 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/target.c')
-rw-r--r--src/target/target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 32ab1178..9416b25b 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -5712,7 +5712,7 @@ COMMAND_HANDLER(handle_test_mem_access_command)
read_buf[i] = read_ref[i];
}
command_print_sameline(CMD_CTX,
- "Test read %d x %d @ %d to %saligned buffer: ", count,
+ "Test read %" PRIu32 " x %d @ %d to %saligned buffer: ", count,
size, offset, host_offset ? "un" : "");
struct duration bench;
@@ -5784,7 +5784,7 @@ out:
for (size_t i = 0; i < host_bufsiz; i++)
write_buf[i] = rand();
command_print_sameline(CMD_CTX,
- "Test write %d x %d @ %d from %saligned buffer: ", count,
+ "Test write %" PRIu32 " x %d @ %d from %saligned buffer: ", count,
size, offset, host_offset ? "un" : "");
retval = target_write_memory(target, wa->address, 1, num_bytes, test_pattern);