Mention register name instead of number in error
Change-Id: I5be5e57418e672fc76383fc24635cdbfb1e65578compliance_dev
parent
ec543bdc7b
commit
6f0d70f5c8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue