From patchwork Tue Apr 3 10:42:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 150434 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 904D5B6EE7 for ; Tue, 3 Apr 2012 22:55:46 +1000 (EST) Received: from localhost ([::1]:37901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF1D6-0006fk-MI for incoming@patchwork.ozlabs.org; Tue, 03 Apr 2012 06:43:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF1Ch-0006Os-Pw for qemu-devel@nongnu.org; Tue, 03 Apr 2012 06:43:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SF1Cc-0002B6-C3 for qemu-devel@nongnu.org; Tue, 03 Apr 2012 06:43:11 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:48835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF1Cc-00029e-3P for qemu-devel@nongnu.org; Tue, 03 Apr 2012 06:43:06 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Apr 2012 11:43:00 +0100 Received: from d06nrmr1707.portsmouth.uk.ibm.com (9.149.39.225) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 3 Apr 2012 11:42:58 +0100 Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q33AgvGK2428976 for ; Tue, 3 Apr 2012 11:42:57 +0100 Received: from d06av03.portsmouth.uk.ibm.com (localhost.localdomain [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q33Aguqa011657 for ; Tue, 3 Apr 2012 04:42:57 -0600 Received: from localhost (dyn-9-174-219-44.manchester-maybrook.uk.ibm.com [9.174.219.44]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q33Agu3m011644; Tue, 3 Apr 2012 04:42:56 -0600 From: Stefan Hajnoczi To: Anthony Liguori Date: Tue, 3 Apr 2012 11:42:42 +0100 Message-Id: <1333449767-16410-4-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1333449767-16410-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1333449767-16410-1-git-send-email-stefanha@linux.vnet.ibm.com> x-cbid: 12040310-5024-0000-0000-000002296389 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.75.94.107 Cc: Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 3/8] qtest: Add missing GCC_FMT_ATTR 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 gcc reports an error when the code is compiled with -Wmissing-format-attribute. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- qtest.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qtest.c b/qtest.c index daeabb7..18afcd9 100644 --- a/qtest.c +++ b/qtest.c @@ -156,7 +156,8 @@ static void qtest_send_prefix(CharDriverState *chr) tv.tv_sec, tv.tv_usec); } -static void qtest_send(CharDriverState *chr, const char *fmt, ...) +static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr, + const char *fmt, ...) { va_list ap; char buffer[1024];