]> git.sur5r.net Git - openocd/commitdiff
fix warning. Use %p for pointers
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 21 May 2009 17:42:19 +0000 (17:42 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 21 May 2009 17:42:19 +0000 (17:42 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1877 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/ioutil.c

index 13d70ceda8ba41f9eb07ec553619cfb389ae35bc..1b2f92610d95d2d23ea550d47f30e2270be5108d 100644 (file)
@@ -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;
 }