|
From: <oh...@ma...> - 2009-05-21 19:42:23
|
Author: oharboe Date: 2009-05-21 19:42:19 +0200 (Thu, 21 May 2009) New Revision: 1877 Modified: trunk/src/helper/ioutil.c Log: fix warning. Use %p for pointers Modified: trunk/src/helper/ioutil.c =================================================================== --- trunk/src/helper/ioutil.c 2009-05-21 17:20:05 UTC (rev 1876) +++ trunk/src/helper/ioutil.c 2009-05-21 17:42:19 UTC (rev 1877) @@ -501,7 +501,7 @@ 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; } |