summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-09-11 14:23:28 +0000
committerTomek CEDRO <cederom@tlen.pl>2011-09-11 14:23:28 +0000
commitc5a7fad78f3e017cab22431c6febf041a7b35d38 (patch)
tree9e795a0f16c47d8b1a9d8bcfe588d49883bf93d3 /src
parent97f56ea68813cf67711be01c9dcced73c194d1aa (diff)
downloadopenocd+libswd-c5a7fad78f3e017cab22431c6febf041a7b35d38.tar.gz
openocd+libswd-c5a7fad78f3e017cab22431c6febf041a7b35d38.tar.bz2
openocd+libswd-c5a7fad78f3e017cab22431c6febf041a7b35d38.tar.xz
openocd+libswd-c5a7fad78f3e017cab22431c6febf041a7b35d38.zip
transport/swd: In libswd log messages contain \n as required, so internal swd_log() does not produce endline anymore.
Diffstat (limited to 'src')
-rw-r--r--src/transport/swd_libswd_drv_openocd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/swd_libswd_drv_openocd.c b/src/transport/swd_libswd_drv_openocd.c
index d8207d94..26e147b4 100644
--- a/src/transport/swd_libswd_drv_openocd.c
+++ b/src/transport/swd_libswd_drv_openocd.c
@@ -277,7 +277,7 @@ int swd_log(swd_ctx_t *swdctx, swd_loglevel_t loglevel, char *msg, ...){
va_list ap;
va_start(ap, msg);
// Calling OpenOCD log functions here will cause program crash (va recurrent).
- res=vprintf(msg, ap); printf("\n");
+ res=vprintf(msg, ap);
va_end(ap);
return SWD_OK;
}