summaryrefslogtreecommitdiff
path: root/src/target/arm966e.c
diff options
context:
space:
mode:
authorFerdinand Postema <ferdinand@postema.eu>2009-11-12 23:21:33 +0100
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-14 02:22:37 -0800
commitab3bdfb2cb7b0c16800195951e4ee549cf8e86a5 (patch)
treeab397749d554bc7f9a9ab05d692d92f0d9aeffd2 /src/target/arm966e.c
parentecab0cfe25600ad13c174b78a637515943cc870a (diff)
downloadopenocd+libswd-ab3bdfb2cb7b0c16800195951e4ee549cf8e86a5.tar.gz
openocd+libswd-ab3bdfb2cb7b0c16800195951e4ee549cf8e86a5.tar.bz2
openocd+libswd-ab3bdfb2cb7b0c16800195951e4ee549cf8e86a5.tar.xz
openocd+libswd-ab3bdfb2cb7b0c16800195951e4ee549cf8e86a5.zip
compile with cygwin (32-bit)
Changed some printf format strings.. [dbrownell@users.sourceforge.net: shrink lines, fix indents] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm966e.c')
-rw-r--r--src/target/arm966e.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/target/arm966e.c b/src/target/arm966e.c
index 931db748..b3d8e158 100644
--- a/src/target/arm966e.c
+++ b/src/target/arm966e.c
@@ -189,7 +189,9 @@ COMMAND_HANDLER(arm966e_handle_cp15_command)
uint32_t value;
if ((retval = arm966e_read_cp15(target, address, &value)) != ERROR_OK)
{
- command_print(cmd_ctx, "couldn't access reg %i", address);
+ command_print(cmd_ctx,
+ "couldn't access reg %" PRIi32,
+ address);
return ERROR_OK;
}
if ((retval = jtag_execute_queue()) != ERROR_OK)
@@ -197,7 +199,8 @@ COMMAND_HANDLER(arm966e_handle_cp15_command)
return retval;
}
- command_print(cmd_ctx, "%i: %8.8" PRIx32 "", address, value);
+ command_print(cmd_ctx, "%" PRIi32 ": %8.8" PRIx32,
+ address, value);
}
else if (argc == 2)
{
@@ -205,10 +208,13 @@ COMMAND_HANDLER(arm966e_handle_cp15_command)
COMMAND_PARSE_NUMBER(u32, args[1], value);
if ((retval = arm966e_write_cp15(target, address, value)) != ERROR_OK)
{
- command_print(cmd_ctx, "couldn't access reg %i", address);
+ command_print(cmd_ctx,
+ "couldn't access reg %" PRIi32,
+ address);
return ERROR_OK;
}
- command_print(cmd_ctx, "%i: %8.8" PRIx32 "", address, value);
+ command_print(cmd_ctx, "%" PRIi32 ": %8.8" PRIx32,
+ address, value);
}
}