diff options
-rw-r--r-- | tools/ioemu/hw/vga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ioemu/hw/vga.c b/tools/ioemu/hw/vga.c index eb5b969caa..6b1f7439bc 100644 --- a/tools/ioemu/hw/vga.c +++ b/tools/ioemu/hw/vga.c @@ -1548,8 +1548,8 @@ static void vga_draw_graphic(VGAState *s, int full_update) } else { /* ENODATA just means we have changed mode and will succeed * next time */ - if (err != -ENODATA) - fprintf(stderr, "track_dirty_vram(%lx, %lx) failed (%d)\n", s->lfb_addr + y, npages, err); + if (errno != ENODATA) + fprintf(stderr, "track_dirty_vram(%lx, %lx) failed (%d, %d)\n", s->lfb_addr + y, npages, err, errno); } } |