Patchwork [7/7] qxl: fix cmdlog for vga

login
register
mail settings
Submitter Gerd Hoffmann
Date June 6, 2011, 12:49 p.m.
Message ID <1307364580-28385-8-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/98939/
State New
Headers show

Comments

Gerd Hoffmann - June 6, 2011, 12:49 p.m.
From: Alon Levy <alevy@redhat.com>

Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/qxl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/qxl.c b/hw/qxl.c
index 2bb36c6..1906e84 100644
--- 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: