summaryrefslogtreecommitdiff
path: root/src/target/target.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-05 19:33:53 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-05 19:33:53 +0000
commit087ccf3b6e1fb75f574b8b388fc51b86312518f6 (patch)
tree12e565908c06ce361155bce6c924967da22bbc5e /src/target/target.c
parent01a5d87d5f5788542c5d26da1c19fa4e634adc10 (diff)
downloadopenocd+libswd-087ccf3b6e1fb75f574b8b388fc51b86312518f6.tar.gz
openocd+libswd-087ccf3b6e1fb75f574b8b388fc51b86312518f6.tar.bz2
openocd+libswd-087ccf3b6e1fb75f574b8b388fc51b86312518f6.tar.xz
openocd+libswd-087ccf3b6e1fb75f574b8b388fc51b86312518f6.zip
warnings & comments fixes.
git-svn-id: svn://svn.berlios.de/openocd/trunk@449 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target.c')
-rw-r--r--src/target/target.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 06abb37c..baf57565 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -362,11 +362,9 @@ int target_process_reset(struct command_context_s *cmd_ctx)
command_print(cmd_ctx, "Timed out waiting for reset");
goto done;
}
- /* this will send alive messages on e.g. GDB remote protocol.
- * GDB warns me that I'm sending a zero length formatting message,
- * which is strange, but in fact what is intended here. */
+ /* this will send alive messages on e.g. GDB remote protocol. */
usleep(500*1000);
- USER_N("");
+ USER_N("%s", ""); /* avoid warning about zero length formatting message*/
goto again;
}
}