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>
This commit is contained in:
parent
14a25cd6de
commit
07e0bd4685
|
@ -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
|
// do nothing, just return the value
|
||||||
} else if (strcasecmp(cmd_name, "tapenable") == 0) {
|
} else if (strcasecmp(cmd_name, "tapenable") == 0) {
|
||||||
if (!jtag_tap_enable(t))
|
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) {
|
} else if (strcasecmp(cmd_name, "tapdisable") == 0) {
|
||||||
if (!jtag_tap_disable(t))
|
if (!jtag_tap_disable(t))
|
||||||
LOG_WARNING("failed to disable tap");
|
LOG_WARNING("failed to disable tap %s", t->dotted_name);
|
||||||
} else {
|
} else {
|
||||||
LOG_ERROR("command '%s' unknown", cmd_name);
|
LOG_ERROR("command '%s' unknown", cmd_name);
|
||||||
return JIM_ERR;
|
return JIM_ERR;
|
||||||
|
|
Loading…
Reference in New Issue