aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-02-21 18:17:46 +0000
committerPeter Maydell <peter.maydell@linaro.org>2019-02-21 18:17:46 +0000
commit76b09fafaf54051ccc0620169ae5b72c87f4f547 (patch)
tree6c598ad2d09d107dd8f1de7f229cafd33d80b5a2
parenta3c1ca56c0a6ec368a7876f2331b037d066b0b27 (diff)
downloadqemu-76b09fafaf54051ccc0620169ae5b72c87f4f547.zip
qemu-76b09fafaf54051ccc0620169ae5b72c87f4f547.tar.gz
qemu-76b09fafaf54051ccc0620169ae5b72c87f4f547.tar.bz2
hw/char/pl011: Use '0x' prefix when logging hex numbers
The pl011 logs when the guest makes a bad access. It prints the address offset in hex but confusingly omits the '0x' prefix; add it. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--hw/char/pl011.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/char/pl011.c b/hw/char/pl011.c
index 29f4e5e..e5dd448 100644
--- a/hw/char/pl011.c
+++ b/hw/char/pl011.c
@@ -143,7 +143,7 @@ static uint64_t pl011_read(void *opaque, hwaddr offset,
break;
default:
qemu_log_mask(LOG_GUEST_ERROR,
- "pl011_read: Bad offset %x\n", (int)offset);
+ "pl011_read: Bad offset 0x%x\n", (int)offset);
r = 0;
break;
}
@@ -232,7 +232,7 @@ static void pl011_write(void *opaque, hwaddr offset,
break;
default:
qemu_log_mask(LOG_GUEST_ERROR,
- "pl011_write: Bad offset %x\n", (int)offset);
+ "pl011_write: Bad offset 0x%x\n", (int)offset);
}
}