Skip to contentSkip to conversation

ioemu: fix spurious track_dirty_vram warning

PATCH New Samuel Thibault 1 participant 1 message Jul 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioemu: fix spurious track_dirty_vram warning

ioemu: fix spurious track_dirty_vram warning

tools/ioemu/hw/vga.c +2 -2
diff -r 70a43a82aaf1 tools/ioemu/hw/vga.c
@@ -1548,8 +1556,8 @@
             } 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);
             }
         }