diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-21 17:42:19 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-21 17:42:19 +0000 |
commit | 576b8a8a482a6cef25cccd713bbc781bb7f03806 (patch) | |
tree | 77816005f29628df7bfd28fbd07660836766c3e7 /src | |
parent | 0ce234491acc59480fb85a92c58a83d3392223e7 (diff) | |
download | openocd+libswd-576b8a8a482a6cef25cccd713bbc781bb7f03806.tar.gz openocd+libswd-576b8a8a482a6cef25cccd713bbc781bb7f03806.tar.bz2 openocd+libswd-576b8a8a482a6cef25cccd713bbc781bb7f03806.tar.xz openocd+libswd-576b8a8a482a6cef25cccd713bbc781bb7f03806.zip |
fix warning. Use %p for pointers
git-svn-id: svn://svn.berlios.de/openocd/trunk@1877 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/ioutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c index 13d70ced..1b2f9261 100644 --- a/src/helper/ioutil.c +++ b/src/helper/ioutil.c @@ -501,7 +501,7 @@ int handle_peek_command(struct command_context_s *cmd_ctx, char *cmd, char **arg unsigned long addr = strtoul(args[0], NULL, 0); volatile unsigned *address = (volatile unsigned *)addr; unsigned value = *address; - command_print(cmd_ctx, "0x%x : 0x%x", (intptr_t)address, value); + command_print(cmd_ctx, "0x%p : 0x%x", address, (int)value); return ERROR_OK; } |