]> git.sur5r.net Git - openocd/commitdiff
Additional format warning fixes in ioutil, required by r1873 changes.
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 21 May 2009 09:49:19 +0000 (09:49 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 21 May 2009 09:49:19 +0000 (09:49 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1874 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/ioutil.c

index 0021234a4bd745499310633a3e24df9011588c66..13d70ceda8ba41f9eb07ec553619cfb389ae35bc 100644 (file)
@@ -155,7 +155,7 @@ int handle_cat_command(struct command_context_s *cmd_ctx, char *cmd,
        int retval = loadFile(args[0], &data, &len);
        if (retval == ERROR_OK)
        {
-               command_print(cmd_ctx, "%s", data);
+               command_print(cmd_ctx, "%s", (char *)data);
                free(data);
        }
        else
@@ -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", address, value);
+       command_print(cmd_ctx, "0x%x : 0x%x", (intptr_t)address, value);
        return ERROR_OK;
 }