flash, target: avoid logging of numeric target state
Replace it by target_state_name() helper. Change-Id: I720f2bf121e6fd2c6987a7e8fa9e52593888ee6c Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/8918 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
8b47a0736b
commit
9b30e05137
@@ -309,9 +309,9 @@ static int ambiqmicro_exec_command(struct target *target,
|
||||
*/
|
||||
target_poll(target);
|
||||
alive_sleep(100);
|
||||
LOG_DEBUG("state = %d", target->state);
|
||||
} else {
|
||||
LOG_ERROR("Target not halted or running %d", target->state);
|
||||
LOG_ERROR("Target not halted or running (state is %s)",
|
||||
target_state_name(target));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user