diff options
author | Peter Maydell | 2019-02-21 19:17:46 +0100 |
---|---|---|
committer | Peter Maydell | 2019-02-21 19:17:46 +0100 |
commit | 76b09fafaf54051ccc0620169ae5b72c87f4f547 (patch) | |
tree | 6c598ad2d09d107dd8f1de7f229cafd33d80b5a2 /hw/char/pl011.c | |
parent | hw/char/pl011: Support all interrupt lines (diff) | |
download | qemu-76b09fafaf54051ccc0620169ae5b72c87f4f547.tar.gz qemu-76b09fafaf54051ccc0620169ae5b72c87f4f547.tar.xz qemu-76b09fafaf54051ccc0620169ae5b72c87f4f547.zip |
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>
Diffstat (limited to 'hw/char/pl011.c')
-rw-r--r-- | hw/char/pl011.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/char/pl011.c b/hw/char/pl011.c index 29f4e5eb22..e5dd448f85 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); } } |