summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-09-09 22:13:38 +0000
committerTomek CEDRO <cederom@tlen.pl>2011-09-09 22:13:38 +0000
commit5a353a0958ad69ebfe47871018a594fd7ee1ec6a (patch)
tree9f55e65dee25ce6ea4de1117d17e6a45d2382913
parente2227e5b627d256b01f8fa95245db9682aeb4c63 (diff)
downloadopenocd+libswd-5a353a0958ad69ebfe47871018a594fd7ee1ec6a.tar.gz
openocd+libswd-5a353a0958ad69ebfe47871018a594fd7ee1ec6a.tar.bz2
openocd+libswd-5a353a0958ad69ebfe47871018a594fd7ee1ec6a.tar.xz
openocd+libswd-5a353a0958ad69ebfe47871018a594fd7ee1ec6a.zip
transport/libswd_drv: swd_log_level_inherit() now returns value of resulting loglevel inherited from openocd.
-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 c503a9a2..5ab75c69 100644
--- a/src/transport/swd_libswd_drv_openocd.c
+++ b/src/transport/swd_libswd_drv_openocd.c
@@ -260,7 +260,7 @@ int swd_log_level_inherit(swd_ctx_t *swdctx, int loglevel){
if (res<0) {
LOG_ERROR("swd_log_level_set() failed (%s)\n", swd_error_string(res));
return ERROR_FAIL;
- } else return SWD_OK;
+ } return new_swdlevel;
}
/** We will use OpenOCD's logging mechanisms to show LibSWD messages. */