Skip to contentSkip to conversation

qxl: fix cmdlog for vga

PATCH New Alon Levy 1 participant 1 message May 18, 2011

lore
Share & tools
lore

Alon Levy

author
#0 lore raw

PATCH 1/1 qxl: fix cmdlog for vga

---
 hw/qxl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
hw/qxl.c +3 -1
index 2bb36c6..1906e84 100644
@@ -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:
Signature · 1 line
1.7.5.1