diff options
author | Philippe Mathieu-Daudé | 2020-11-03 12:25:56 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2020-11-13 07:36:33 +0100 |
commit | e016a844ddfc94167fa25d55b46e1d1accafdec2 (patch) | |
tree | e485372a644e7b72300fad21ee9f351f79620495 /hw | |
parent | hw/display/cirrus_vga: Remove debugging code commented out (diff) | |
download | qemu-e016a844ddfc94167fa25d55b46e1d1accafdec2.tar.gz qemu-e016a844ddfc94167fa25d55b46e1d1accafdec2.tar.xz qemu-e016a844ddfc94167fa25d55b46e1d1accafdec2.zip |
hw/display/cirrus_vga: Fix hexadecimal format string specifier
The '%u' conversion specifier is for decimal notation.
When prefixing a format with '0x', we want the hexadecimal
specifier ('%x').
Inspired-by: Dov Murik <dovmurik@linux.vnet.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-id: 20201103112558.2554390-3-philmd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/display/cirrus_vga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index e14096deb4..fdca6ca659 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -2105,7 +2105,7 @@ static void cirrus_vga_mem_write(void *opaque, } else { qemu_log_mask(LOG_GUEST_ERROR, "cirrus: mem_writeb 0x" TARGET_FMT_plx " " - "value 0x%02" PRIu64 "\n", addr, mem_value); + "value 0x%02" PRIx64 "\n", addr, mem_value); } } |