summaryrefslogtreecommitdiff
path: root/src/jtag/core.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-01-03 13:30:28 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-01-03 13:33:27 +0100
commitc69553cbc51770f61cf3b9225d46d058fa2544d0 (patch)
tree07aa7f6d5bc1861cc926e2359034ef42f17dc46a /src/jtag/core.c
parent1795239cfda77315ea2f4fbc028e7a411d13a7d0 (diff)
downloadopenocd_libswd-c69553cbc51770f61cf3b9225d46d058fa2544d0.tar.gz
openocd_libswd-c69553cbc51770f61cf3b9225d46d058fa2544d0.tar.bz2
openocd_libswd-c69553cbc51770f61cf3b9225d46d058fa2544d0.tar.xz
openocd_libswd-c69553cbc51770f61cf3b9225d46d058fa2544d0.zip
error handling: the error number is not part of the user interface
Do not propagate error number to user. This is for internal programming purposes only. Error messages to the user is reported as text via LOG_ERROR(). Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/jtag/core.c')
-rw-r--r--src/jtag/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index 6e923bd4..0c222db9 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -695,7 +695,7 @@ void jtag_add_reset(int req_tlr_or_trst, int req_srst)
retval = jtag_execute_queue();
if (retval != ERROR_OK) {
- LOG_ERROR("TRST/SRST error %d", retval);
+ LOG_ERROR("TRST/SRST error");
return;
}
}