From 4ee7d5373d0d97035687cfa2cdd64bf10d8a992f Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Wed, 28 Feb 2018 09:04:09 -0800 Subject: [PATCH] Fix auth error message. Change-Id: I79b72325e9a6b85f8b67df8e9837a54cfce928f0 --- src/target/riscv/riscv-013.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 2a04d6162..a66d0bf17 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -595,7 +595,7 @@ int dmstatus_read(struct target *target, uint32_t *dmstatus, if (authenticated && !get_field(*dmstatus, DMI_DMSTATUS_AUTHENTICATED)) { LOG_ERROR("Debugger is not authenticated to target Debug Module. " "(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_OK; @@ -1313,7 +1313,7 @@ static int examine(struct target *target) if (!get_field(dmstatus, DMI_DMSTATUS_AUTHENTICATED)) { LOG_ERROR("Debugger is not authenticated to target Debug Module. " "(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 * core won't be examined, which means we won't set up the * authentication commands for them, which means the config script