Mention register name instead of number in error

Change-Id: I5be5e57418e672fc76383fc24635cdbfb1e65578
compliance_dev
Tim Newsome 2018-01-30 12:30:39 -08:00
parent ec543bdc7b
commit 6f0d70f5c8
1 changed files with 1 additions and 1 deletions

View File

@ -1913,7 +1913,7 @@ static int riscv013_get_register(struct target *target,
} else {
result = register_read_direct(target, value, rid);
if (result != ERROR_OK) {
LOG_ERROR("Unable to read register %d", rid);
LOG_ERROR("Unable to read %s", gdb_regno_name(rid));
*value = -1;
}
}