From: Ian Jackson Date: Thu, 24 Jul 2008 13:32:06 +0000 (+0100) Subject: fix spurious track_dirty_vram warning X-Git-Tag: xen-3.3.0-rc1~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b5eaf6c53a8f1cbb26fa569d4623a37e6ee6838a;p=qemu-xen-3.3-testing.git fix spurious track_dirty_vram warning Signed-off-by: Samuel Thibault --- diff --git a/hw/vga.c b/hw/vga.c index 8d809749..fd66c086 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -1551,8 +1551,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); } }