diff options
author | Tomek CEDRO <cederom@tlen.pl> | 2011-09-09 22:13:38 +0000 |
---|---|---|
committer | Tomek CEDRO <cederom@tlen.pl> | 2011-09-09 22:13:38 +0000 |
commit | 5a353a0958ad69ebfe47871018a594fd7ee1ec6a (patch) | |
tree | 9f55e65dee25ce6ea4de1117d17e6a45d2382913 | |
parent | e2227e5b627d256b01f8fa95245db9682aeb4c63 (diff) | |
download | openocd_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.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 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. */ |