From c5a7fad78f3e017cab22431c6febf041a7b35d38 Mon Sep 17 00:00:00 2001 From: Tomek CEDRO Date: Sun, 11 Sep 2011 14:23:28 +0000 Subject: transport/swd: In libswd log messages contain \n as required, so internal swd_log() does not produce endline anymore. --- src/transport/swd_libswd_drv_openocd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/transport') 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; } -- cgit v1.2.3