target/armv4: Use command_print() instead of LOG_ERROR()
Use command_print() in order to provide an error message to the caller. Change-Id: I9f1a2ef07a102e1d6e755f3680bed0f7183b5c9c Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8968 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
56c24b9eb2
commit
c6f1863352
@@ -842,7 +842,7 @@ COMMAND_HANDLER(handle_armv4_5_reg_command)
|
||||
}
|
||||
|
||||
if (!is_arm_mode(arm->core_mode)) {
|
||||
LOG_ERROR("not a valid arm core mode - communication failure?");
|
||||
command_print(CMD, "not a valid arm core mode - communication failure?");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
@@ -954,7 +954,7 @@ COMMAND_HANDLER(handle_arm_disassemble_command)
|
||||
struct target *target = get_current_target(CMD_CTX);
|
||||
|
||||
if (!target) {
|
||||
LOG_ERROR("No target selected");
|
||||
command_print(CMD, "No target selected");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user