diff options
author | Philippe Mathieu-Daudé | 2017-05-09 01:39:17 +0200 |
---|---|---|
committer | Michael Tokarev | 2017-06-04 17:42:55 +0200 |
commit | 016b4a93e733778d75088d8e87ab1bd7e73425b4 (patch) | |
tree | 751a6def0c5988b3ebc42a548ccdd6e82d9da9ff | |
parent | hw/sparc: use ARRAY_SIZE() macro (diff) | |
download | qemu-016b4a93e733778d75088d8e87ab1bd7e73425b4.tar.gz qemu-016b4a93e733778d75088d8e87ab1bd7e73425b4.tar.xz qemu-016b4a93e733778d75088d8e87ab1bd7e73425b4.zip |
register: display register prefix (name) since it is available
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r-- | hw/core/register.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/core/register.c b/hw/core/register.c index da38ef3a54..900294b9c4 100644 --- a/hw/core/register.c +++ b/hw/core/register.c @@ -195,8 +195,8 @@ void register_write_memory(void *opaque, hwaddr addr, } if (!reg) { - qemu_log_mask(LOG_GUEST_ERROR, "Write to unimplemented register at " \ - "address: %#" PRIx64 "\n", addr); + qemu_log_mask(LOG_GUEST_ERROR, "%s: write to unimplemented register " \ + "at address: %#" PRIx64 "\n", reg_array->prefix, addr); return; } @@ -224,8 +224,8 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, } if (!reg) { - qemu_log_mask(LOG_GUEST_ERROR, "Read to unimplemented register at " \ - "address: %#" PRIx64 "\n", addr); + qemu_log_mask(LOG_GUEST_ERROR, "%s: read to unimplemented register " \ + "at address: %#" PRIx64 "\n", reg_array->prefix, addr); return 0; } |