mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-19 11:42:04 +10:00
fix warning. Use %p for pointers
git-svn-id: svn://svn.berlios.de/openocd/trunk@1877 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
0ce234491a
commit
576b8a8a48
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user