diff options
-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; } |