Merge pull request #199 from riscv/regname

Mention register name instead of number in error
This commit is contained in:
Tim Newsome 2018-02-01 12:05:33 -08:00 committed by GitHub
commit 6e278cded6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}
}