[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/6] hw/display/cirrus_vga: Fix hexadecimal format string specifie
From: |
Gerd Hoffmann |
Subject: |
[PULL 5/6] hw/display/cirrus_vga: Fix hexadecimal format string specifier |
Date: |
Fri, 13 Nov 2020 13:29:54 +0100 |
From: Philippe Mathieu-Daudé <philmd@redhat.com>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
index e14096deb46a..fdca6ca659f9 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);
}
}
--
2.27.0
- [PULL 0/6] Fixes 20201113 patches, Gerd Hoffmann, 2020/11/13
- [PULL 3/6] hw/usb/Kconfig: Fix USB_XHCI_NEC (depends on USB_XHCI_PCI), Gerd Hoffmann, 2020/11/13
- [PULL 6/6] xhci: fix nec-usb-xhci properties, Gerd Hoffmann, 2020/11/13
- [PULL 4/6] hw/display/cirrus_vga: Remove debugging code commented out, Gerd Hoffmann, 2020/11/13
- [PULL 1/6] audio/jack: fix use after free segfault, Gerd Hoffmann, 2020/11/13
- [PULL 5/6] hw/display/cirrus_vga: Fix hexadecimal format string specifier,
Gerd Hoffmann <=
- [PULL 2/6] console: avoid passing con=NULL to graphic_hw_update_done(), Gerd Hoffmann, 2020/11/13
- Re: [PULL 0/6] Fixes 20201113 patches, Peter Maydell, 2020/11/13