aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-05-18 17:34:36 +0300
committerGerd Hoffmann <kraxel@redhat.com>2011-06-06 09:14:42 +0200
commit212496c98219df17913f3157a7bf85575b32384f (patch)
tree15c2997adf0fc269f88aadcc91b66c11d06345a2 /hw
parent012b80d3f904c9a4d4ea85036ba8d4d1acf12e7d (diff)
qxl: fix cmdlog for vga
Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/qxl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 2bb36c660f..1906e84fab 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: