diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2018-06-26 17:50:41 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-06-26 17:50:41 +0100 |
commit | d29183d3c0174e248b31bb2ee58b889f7baa3cfe (patch) | |
tree | 9761ca0d9dc9d53f439648dc13876ef830c4778f /hw | |
parent | bc281efff60f81fdde6014daa24ca81484b42814 (diff) | |
download | qemu-d29183d3c0174e248b31bb2ee58b889f7baa3cfe.zip qemu-d29183d3c0174e248b31bb2ee58b889f7baa3cfe.tar.gz qemu-d29183d3c0174e248b31bb2ee58b889f7baa3cfe.tar.bz2 |
hw/arm/stellaris: Use HWADDR_PRIx to display register address
Suggested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180624040609.17572-17-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/arm/stellaris.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index 42baa76..dc521b4 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -212,7 +212,8 @@ static uint64_t gptm_read(void *opaque, hwaddr offset, return 0; default: qemu_log_mask(LOG_GUEST_ERROR, - "GPTM: read at bad offset 0x%x\n", (int)offset); + "GPTM: read at bad offset 0x02%" HWADDR_PRIx "\n", + offset); return 0; } } @@ -294,7 +295,8 @@ static void gptm_write(void *opaque, hwaddr offset, break; default: qemu_log_mask(LOG_GUEST_ERROR, - "GPTM: write at bad offset 0x%x\n", (int)offset); + "GPTM: write at bad offset 0x02%" HWADDR_PRIx "\n", + offset); } gptm_update_irq(s); } |