aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
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
commit68274b945e9ab4369e97baa010a700f8056c8113 (patch)
treed17ddcfcdfecc65b4cfb88e4dd4bc04b72e8e3e2 /hw/misc
parent739fa3255492f1c7541db1c7a9795fcf4b472c91 (diff)
downloadqemu-68274b945e9ab4369e97baa010a700f8056c8113.zip
qemu-68274b945e9ab4369e97baa010a700f8056c8113.tar.gz
qemu-68274b945e9ab4369e97baa010a700f8056c8113.tar.bz2
hw/misc/unimp: Display value after offset
To better align the read/write accesses, display the value after the offset (read accesses only display the offset). Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20200812190206.31595-2-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/misc')
-rw-r--r--hw/misc/unimp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/misc/unimp.c b/hw/misc/unimp.c
index bc4084d..ee2e536 100644
--- a/hw/misc/unimp.c
+++ b/hw/misc/unimp.c
@@ -22,7 +22,7 @@ static uint64_t unimp_read(void *opaque, hwaddr offset, unsigned size)
{
UnimplementedDeviceState *s = UNIMPLEMENTED_DEVICE(opaque);
- qemu_log_mask(LOG_UNIMP, "%s: unimplemented device read "
+ qemu_log_mask(LOG_UNIMP, "%s: unimplemented device read "
"(size %d, offset 0x%" HWADDR_PRIx ")\n",
s->name, size, offset);
return 0;
@@ -34,9 +34,9 @@ static void unimp_write(void *opaque, hwaddr offset,
UnimplementedDeviceState *s = UNIMPLEMENTED_DEVICE(opaque);
qemu_log_mask(LOG_UNIMP, "%s: unimplemented device write "
- "(size %d, value 0x%" PRIx64
- ", offset 0x%" HWADDR_PRIx ")\n",
- s->name, size, value, offset);
+ "(size %d, offset 0x%" HWADDR_PRIx
+ ", value 0x%" PRIx64 ")\n",
+ s->name, size, offset, value);
}
static const MemoryRegionOps unimp_ops = {