diff options
author | Megan Wachs <megan@sifive.com> | 2017-02-10 14:19:23 -0800 |
---|---|---|
committer | Megan Wachs <megan@sifive.com> | 2017-02-10 14:19:23 -0800 |
commit | 3a1d6f1702968c63df44f96125fb95797c6821c7 (patch) | |
tree | 979409231374283d01201919d134a00bbf606ba9 /src/target/target.c | |
parent | 7b95554ff526a6ac0002373e589d0dafd152900f (diff) | |
download | riscv-openocd-3a1d6f1702968c63df44f96125fb95797c6821c7.zip riscv-openocd-3a1d6f1702968c63df44f96125fb95797c6821c7.tar.gz riscv-openocd-3a1d6f1702968c63df44f96125fb95797c6821c7.tar.bz2 |
riscv: Add register name to message when they do not exist.
Diffstat (limited to 'src/target/target.c')
-rw-r--r-- | src/target/target.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/target.c b/src/target/target.c index a8be18e..42a8cac 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -2703,8 +2703,8 @@ COMMAND_HANDLER(handle_reg_command) if (reg->valid == 0) { retval = reg->type->get(reg); if (retval != ERROR_OK) { - LOG_DEBUG("Couldn't get register."); - return retval; + LOG_DEBUG("Couldn't get register %s.", reg->name); + return retval; } } value = buf_to_str(reg->value, reg->size, 16); @@ -2722,7 +2722,7 @@ COMMAND_HANDLER(handle_reg_command) retval = reg->type->set(reg, buf); if (retval != ERROR_OK) { - LOG_DEBUG("Couldn't set register."); + LOG_DEBUG("Couldn't set register %s.", reg->name); free (buf); return retval; } |