diff options
author | Tomek CEDRO <cederom@tlen.pl> | 2011-09-11 14:23:28 +0000 |
---|---|---|
committer | Tomek CEDRO <cederom@tlen.pl> | 2011-09-11 14:23:28 +0000 |
commit | c5a7fad78f3e017cab22431c6febf041a7b35d38 (patch) | |
tree | 9e795a0f16c47d8b1a9d8bcfe588d49883bf93d3 | |
parent | 97f56ea68813cf67711be01c9dcced73c194d1aa (diff) | |
download | openocd_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.
-rw-r--r-- | src/transport/swd_libswd_drv_openocd.c | 2 |
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; } |