From: Leonid Shatz <leonid.sh...@oracle.com> For better readability of debug output, show these values in decimal notation, as they are defined in source by decimal integers.
Signed-off-by: Leonid Shatz <leonid.sh...@oracle.com> Reviewed-by: Darren Kenny <darren.ke...@oracle.com> Signed-off-by: Liran Alon <liran.a...@oracle.com> --- hw/display/vmware_vga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c index 2e6ac5dfad8a..2fbb9e7f6c9f 100644 --- a/hw/display/vmware_vga.c +++ b/hw/display/vmware_vga.c @@ -773,7 +773,7 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s) vmsvga_fifo_read(s); } if (!cmd_ignored) { - printf("%s: Unknown command 0x%02x in SVGA command FIFO\n", + printf("%s: Unknown command %d in SVGA command FIFO\n", __func__, cmd); } break; @@ -964,7 +964,7 @@ static uint32_t vmsvga_value_read(void *opaque, uint32_t address) ret = s->scratch[s->index - SVGA_SCRATCH_BASE]; break; } - printf("%s: Bad register %02x\n", __func__, s->index); + printf("%s: Bad register %d\n", __func__, s->index); ret = 0; break; } @@ -1092,7 +1092,7 @@ static void vmsvga_value_write(void *opaque, uint32_t address, uint32_t value) s->scratch[s->index - SVGA_SCRATCH_BASE] = value; break; } - printf("%s: Bad register %02x\n", __func__, s->index); + printf("%s: Bad register %d\n", __func__, s->index); } } -- 1.9.1