From patchwork Mon Jun 6 12:49:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 98939 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EBA37B6FAA for ; Tue, 7 Jun 2011 00:54:12 +1000 (EST) Received: from localhost ([::1]:37383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTbBv-0001Dn-B4 for incoming@patchwork.ozlabs.org; Mon, 06 Jun 2011 10:54:07 -0400 Received: from eggs.gnu.org ([140.186.70.92]:44009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTZFg-0002QL-Qz for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:49:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTZFd-0007hi-I3 for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:49:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTZFc-0007h6-L2 for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:49:49 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p56CnlMD024300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 6 Jun 2011 08:49:47 -0400 Received: from rincewind.home.kraxel.org (vpn2-8-52.ams2.redhat.com [10.36.8.52]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p56CnkOZ002663; Mon, 6 Jun 2011 08:49:47 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 93CC8441CE; Mon, 6 Jun 2011 14:49:40 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Mon, 6 Jun 2011 14:49:40 +0200 Message-Id: <1307364580-28385-8-git-send-email-kraxel@redhat.com> In-Reply-To: <1307364580-28385-1-git-send-email-kraxel@redhat.com> References: <1307364580-28385-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Alon Levy , Gerd Hoffmann Subject: [Qemu-devel] [PATCH 7/7] qxl: fix cmdlog for vga X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Alon Levy Signed-off-by: Alon Levy Signed-off-by: Gerd Hoffmann --- hw/qxl.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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: