aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>2018-12-20 19:33:26 +0100
committerMatthias Welwarsky <matthias@welwarsky.de>2018-12-27 12:47:35 +0000
commitd1c7b0ab8a9a397a361276b9a38bcb9ba55678bd (patch)
treefa4905dc84224d6227c88c5320f3348e9af7593f
parent44009186cfabe77fb260af221ebd6272d1e78f44 (diff)
downloadriscv-openocd-d1c7b0ab8a9a397a361276b9a38bcb9ba55678bd.zip
riscv-openocd-d1c7b0ab8a9a397a361276b9a38bcb9ba55678bd.tar.gz
riscv-openocd-d1c7b0ab8a9a397a361276b9a38bcb9ba55678bd.tar.bz2
target/arm_cti: add debug message when an incorrect CTI register name is used
the patch also contains some typo fixes Change-Id: Ia4267036068455144cdcbfdffed15518d48f445e Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-on: http://openocd.zylin.com/4816 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r--src/target/arm_cti.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/target/arm_cti.c b/src/target/arm_cti.c
index dcaf21e..df60372 100644
--- a/src/target/arm_cti.c
+++ b/src/target/arm_cti.c
@@ -216,6 +216,8 @@ static int cti_find_reg_offset(const char *name)
if (!strcmp(name, cti_names[i].label))
return cti_names[i].offset;
}
+
+ LOG_ERROR("unknown CTI register %s", name);
return -1;
}
@@ -297,7 +299,7 @@ COMMAND_HANDLER(handle_cti_write)
uint32_t value;
if (CMD_ARGC != 2) {
- Jim_SetResultString(interp, "Wrong numer of args", -1);
+ Jim_SetResultString(interp, "Wrong number of args", -1);
return ERROR_FAIL;
}
@@ -320,7 +322,7 @@ COMMAND_HANDLER(handle_cti_read)
uint32_t value;
if (CMD_ARGC != 1) {
- Jim_SetResultString(interp, "Wrong numer of args", -1);
+ Jim_SetResultString(interp, "Wrong number of args", -1);
return ERROR_FAIL;
}