qxl: fix cmdlog for vga

Submitted by Alon Levy on May 18, 2011, 2:34 p.m.

Details

Message ID 1305729276-14163-1-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

Alon Levy May 18, 2011, 2:34 p.m.
Signed-off-by: Alon Levy <alevy@redhat.com>
---
 hw/qxl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

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: