diff mbox series

[v2,1/2] display/vmware_vga: Fix bad printf format specifiers

Message ID 20201120032517.104486-2-alex.chen@huawei.com (mailing list archive)
State New, archived
Headers show
Series Optimized some code for display/vmware_vga | expand

Commit Message

Alex Chen Nov. 20, 2020, 3:25 a.m. UTC
We should use printf format specifier "%u" instead of "%d" for
argument of type "unsigned int".

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
 hw/display/vmware_vga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
index bef0d7d69a..f93bbe15c2 100644
--- a/hw/display/vmware_vga.c
+++ b/hw/display/vmware_vga.c
@@ -534,7 +534,7 @@  static inline void vmsvga_cursor_define(struct vmsvga_state_s *s,
-        fprintf(stderr, "%s: unhandled bpp %d, using fallback cursor\n",
+        fprintf(stderr, "%s: unhandled bpp %u, using fallback cursor\n",
                 __func__, c->bpp);
         qc = cursor_builtin_left_ptr();