aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-08-28 10:02:46 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-08-28 10:02:46 +0100
commita12b4c53cbf4d5e75f0e88d624c196d8b71256f4 (patch)
treeaeb76ed53df9a0a92395fbb738225e1b99e1385d
parent68274b945e9ab4369e97baa010a700f8056c8113 (diff)
downloadqemu-a12b4c53cbf4d5e75f0e88d624c196d8b71256f4.zip
qemu-a12b4c53cbf4d5e75f0e88d624c196d8b71256f4.tar.gz
qemu-a12b4c53cbf4d5e75f0e88d624c196d8b71256f4.tar.bz2
hw/misc/unimp: Display the value with width of the access size
To quickly notice the access size, display the value with the width of the access (i.e. 16-bit access is displayed 0x0000, while 8-bit access 0x00). Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20200812190206.31595-3-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/misc/unimp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/misc/unimp.c b/hw/misc/unimp.c
index ee2e536..b4b318d 100644
--- a/hw/misc/unimp.c
+++ b/hw/misc/unimp.c
@@ -35,8 +35,8 @@ static void unimp_write(void *opaque, hwaddr offset,
qemu_log_mask(LOG_UNIMP, "%s: unimplemented device write "
"(size %d, offset 0x%" HWADDR_PRIx
- ", value 0x%" PRIx64 ")\n",
- s->name, size, offset, value);
+ ", value 0x%0*" PRIx64 ")\n",
+ s->name, size, offset, size << 1, value);
}
static const MemoryRegionOps unimp_ops = {