Improve user messages.

Co-authored-by: Jan Matyas <50193733+JanMatCodasip@users.noreply.github.com>
Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
Tim Newsome 2022-10-05 10:32:47 -07:00 committed by GitHub
parent d4c92a5ac7
commit a74e59f0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}