From patchwork Fri Sep 9 09:24:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 114026 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 E56D5B6FD7 for ; Fri, 9 Sep 2011 19:24:45 +1000 (EST) Received: from localhost ([::1]:42253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1xKF-0001Qm-2R for incoming@patchwork.ozlabs.org; Fri, 09 Sep 2011 05:24:43 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1xJw-0001BN-PU for qemu-devel@nongnu.org; Fri, 09 Sep 2011 05:24:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1xJv-0005TH-HO for qemu-devel@nongnu.org; Fri, 09 Sep 2011 05:24:24 -0400 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:33449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1xJv-0005SY-9i for qemu-devel@nongnu.org; Fri, 09 Sep 2011 05:24:23 -0400 Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p899OLIt016249 for ; Fri, 9 Sep 2011 09:24:21 GMT Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p899OL9H2625664 for ; Fri, 9 Sep 2011 10:24:21 +0100 Received: from d06av11.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p899OKm3004970 for ; Fri, 9 Sep 2011 03:24:20 -0600 Received: from stefanha-thinkpad.manchester-maybrook.uk.ibm.com (dyn-9-174-219-30.manchester-maybrook.uk.ibm.com [9.174.219.30]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p899OIqW004851; Fri, 9 Sep 2011 03:24:19 -0600 From: Stefan Hajnoczi To: Date: Fri, 9 Sep 2011 10:24:14 +0100 Message-Id: <1315560255-25009-8-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1315560255-25009-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1315560255-25009-1-git-send-email-stefanha@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.196.100.162 Cc: Anthony Liguori , "Aneesh Kumar K.V" , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 7/8] virtio-9p: Fix syntax error in debug code 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: Stefan Weil This error was reported by cppcheck: qemu/hw/9pfs/virtio-9p-debug.c:342: error: Invalid number of character ({) when these macros are defined: 'DEBUG_DATA'. Cc: Aneesh Kumar K.V Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/9pfs/virtio-9p-debug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/9pfs/virtio-9p-debug.c b/hw/9pfs/virtio-9p-debug.c index 4636ad5..96925f0 100644 --- a/hw/9pfs/virtio-9p-debug.c +++ b/hw/9pfs/virtio-9p-debug.c @@ -295,7 +295,7 @@ static void pprint_data(V9fsPDU *pdu, int rx, size_t *offsetp, const char *name) if (rx) { count = pdu->elem.in_num; - } else + } else { count = pdu->elem.out_num; }