summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-11-04 02:07:12 +0000
committerTomek CEDRO <cederom@tlen.pl>2011-11-04 02:07:12 +0000
commit955e8934845b5dbee5a2fda02fc3204fb49ebb17 (patch)
tree8a633d44db4e2b0588e5355f48c2459f2a1c682b /src/transport
parent08db63ec5d22fdc47577d01f15a129390079a2ae (diff)
parent5d773f63136a86bd72ebb2862ca90766f945418b (diff)
downloadopenocd+libswd-955e8934845b5dbee5a2fda02fc3204fb49ebb17.tar.gz
openocd+libswd-955e8934845b5dbee5a2fda02fc3204fb49ebb17.tar.bz2
openocd+libswd-955e8934845b5dbee5a2fda02fc3204fb49ebb17.tar.xz
openocd+libswd-955e8934845b5dbee5a2fda02fc3204fb49ebb17.zip
Merge branch 'master' of ssh://repo.or.cz/srv/git/openocd/libswd
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/swd_libswd_drv_openocd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transport/swd_libswd_drv_openocd.c b/src/transport/swd_libswd_drv_openocd.c
index f4005459..2066d5b3 100644
--- a/src/transport/swd_libswd_drv_openocd.c
+++ b/src/transport/swd_libswd_drv_openocd.c
@@ -266,11 +266,10 @@ int swd_log(swd_ctx_t *swdctx, swd_loglevel_t loglevel, char *msg, ...){
if (loglevel > SWD_LOGLEVEL_MAX) return SWD_ERROR_PARAM;
if (loglevel > swdctx->config.loglevel) return SWD_OK;
- int res;
va_list ap;
va_start(ap, msg);
// Calling OpenOCD log functions here will cause program crash (va recurrent).
- res=vprintf(msg, ap);
+ vprintf(msg, ap);
va_end(ap);
return SWD_OK;
}