aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-21 09:49:19 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-21 09:49:19 +0000
commit08c11a4c700795e627c6459f5b9a88a6ddeeacf8 (patch)
treeec8f753ab31e793c0b4b43fa3bb4897eef51af51 /src
parent570631454df083f2af26e453939424a14a9684f1 (diff)
downloadriscv-openocd-08c11a4c700795e627c6459f5b9a88a6ddeeacf8.zip
riscv-openocd-08c11a4c700795e627c6459f5b9a88a6ddeeacf8.tar.gz
riscv-openocd-08c11a4c700795e627c6459f5b9a88a6ddeeacf8.tar.bz2
Additional format warning fixes in ioutil, required by r1873 changes.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1874 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/helper/ioutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c
index 0021234..13d70ce 100644
--- a/src/helper/ioutil.c
+++ b/src/helper/ioutil.c
@@ -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;
}