summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Koeller <thomas.koeller@baslerweb.com>2010-08-10 14:56:45 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-08-12 08:59:05 +0200
commit07e0bd46859439426084e2612d3fe1c3281564a9 (patch)
tree62521d9be35b227ca7e2e481106c55b8c7a062b8 /src
parent14a25cd6de1fa7d72bae466375cdef3081f7f339 (diff)
downloadopenocd+libswd-07e0bd46859439426084e2612d3fe1c3281564a9.tar.gz
openocd+libswd-07e0bd46859439426084e2612d3fe1c3281564a9.tar.bz2
openocd+libswd-07e0bd46859439426084e2612d3fe1c3281564a9.tar.xz
openocd+libswd-07e0bd46859439426084e2612d3fe1c3281564a9.zip
jtag: fix handling of 'tap enable' error
if a tap could not be _enabled_, the error message was 'failed to disable tap'. Fixed that. Also, display the failing tap's name. Signed-off-by: Thomas Koeller <thomas.koeller@baslerweb.com>
Diffstat (limited to 'src')
-rw-r--r--src/jtag/tcl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index 69045c60..4df3ccb8 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -768,10 +768,10 @@ static int jim_jtag_tap_enabler(Jim_Interp *interp, int argc, Jim_Obj *const *ar
// do nothing, just return the value
} else if (strcasecmp(cmd_name, "tapenable") == 0) {
if (!jtag_tap_enable(t))
- LOG_WARNING("failed to disable tap");
+ LOG_WARNING("failed to enable tap %s", t->dotted_name);
} else if (strcasecmp(cmd_name, "tapdisable") == 0) {
if (!jtag_tap_disable(t))
- LOG_WARNING("failed to disable tap");
+ LOG_WARNING("failed to disable tap %s", t->dotted_name);
} else {
LOG_ERROR("command '%s' unknown", cmd_name);
return JIM_ERR;