From 6f0d70f5c82e6bd2d441fc8b982f8a4578d179a4 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 30 Jan 2018 12:30:39 -0800 Subject: [PATCH] Mention register name instead of number in error Change-Id: I5be5e57418e672fc76383fc24635cdbfb1e65578 --- src/target/riscv/riscv-013.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 730d76f5b..760adb381 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -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; } }