diff options
author | Tim Newsome <tim@sifive.com> | 2022-10-05 10:32:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 10:32:47 -0700 |
commit | a74e59f0fc1c8907e3c97bf14031d5d9fb86d88b (patch) | |
tree | ec23957c72958e3c2a9aedb3c65bc259c96d54db /src/target | |
parent | d4c92a5ac7d17f6a0a178d1b4450244e1e3811a9 (diff) | |
download | riscv-openocd-a74e59f0fc1c8907e3c97bf14031d5d9fb86d88b.zip riscv-openocd-a74e59f0fc1c8907e3c97bf14031d5d9fb86d88b.tar.gz riscv-openocd-a74e59f0fc1c8907e3c97bf14031d5d9fb86d88b.tar.bz2 |
Improve user messages.halt_examine
Co-authored-by: Jan Matyas <50193733+JanMatCodasip@users.noreply.github.com>
Signed-off-by: Tim Newsome <tim@sifive.com>
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/target.c b/src/target/target.c index 56607a1..b9d71d9 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -591,10 +591,10 @@ int target_halt(struct target *target) if (!target_was_examined(target)) { /* Try to examine the target right now, in case the target we're * talking to didn't examine correctly during `init`. */ - LOG_TARGET_INFO(target, "Try to examine unexamined target in target_halt()."); + LOG_TARGET_INFO(target, "Trying to examine unexamined target before halt attempt."); target_examine(); if (!target_was_examined(target)) { - LOG_ERROR("Target not examined yet"); + LOG_TARGET_ERROR(target, "Re-examination before halt failed. Target not examined yet."); return ERROR_FAIL; } } |