Merge pull request #231 from riscv/auth

Fix auth error message.
This commit is contained in:
Tim Newsome 2018-03-30 14:02:29 -07:00 committed by GitHub
commit 58a2994b00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -595,7 +595,7 @@ int dmstatus_read(struct target *target, uint32_t *dmstatus,
if (authenticated && !get_field(*dmstatus, DMI_DMSTATUS_AUTHENTICATED)) { if (authenticated && !get_field(*dmstatus, DMI_DMSTATUS_AUTHENTICATED)) {
LOG_ERROR("Debugger is not authenticated to target Debug Module. " LOG_ERROR("Debugger is not authenticated to target Debug Module. "
"(dmstatus=0x%x). Use `riscv authdata_read` and " "(dmstatus=0x%x). Use `riscv authdata_read` and "
"`riscv_authdata_write` commands to authenticate.", *dmstatus); "`riscv authdata_write` commands to authenticate.", *dmstatus);
return ERROR_FAIL; return ERROR_FAIL;
} }
return ERROR_OK; return ERROR_OK;
@ -1313,7 +1313,7 @@ static int examine(struct target *target)
if (!get_field(dmstatus, DMI_DMSTATUS_AUTHENTICATED)) { if (!get_field(dmstatus, DMI_DMSTATUS_AUTHENTICATED)) {
LOG_ERROR("Debugger is not authenticated to target Debug Module. " LOG_ERROR("Debugger is not authenticated to target Debug Module. "
"(dmstatus=0x%x). Use `riscv authdata_read` and " "(dmstatus=0x%x). Use `riscv authdata_read` and "
"`riscv_authdata_write` commands to authenticate.", dmstatus); "`riscv authdata_write` commands to authenticate.", dmstatus);
/* If we return ERROR_FAIL here, then in a multicore setup the next /* If we return ERROR_FAIL here, then in a multicore setup the next
* core won't be examined, which means we won't set up the * core won't be examined, which means we won't set up the
* authentication commands for them, which means the config script * authentication commands for them, which means the config script