hw/display/cirrus_vga: Fix hexadecimal format string specifier
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 3 Nov 2020 11:25:56 +0000 (12:25 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 13 Nov 2020 06:36:33 +0000 (07:36 +0100)
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>
hw/display/cirrus_vga.c

index e14096deb46a3ecb0fc84f314fe94ca154d129bc..fdca6ca659f9147a630a64804d784ec890564aae 100644 (file)
@@ -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);
     }
 }