qxl: fix cmdlog for vga
authorAlon Levy <alevy@redhat.com>
Wed, 18 May 2011 14:34:36 +0000 (17:34 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 6 Jun 2011 07:14:42 +0000 (09:14 +0200)
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl.c

index 2bb36c6..1906e84 100644 (file)
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -357,7 +357,9 @@ static int interface_get_command(QXLInstance *sin, struct QXLCommandExt *ext)
             ret = true;
         }
         qemu_mutex_unlock(&qxl->ssd.lock);
-        qxl_log_command(qxl, "vga", ext);
+        if (ret) {
+            qxl_log_command(qxl, "vga", ext);
+        }
         return ret;
     case QXL_MODE_COMPAT:
     case QXL_MODE_NATIVE: