From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My3gm-0001NN-1V for qemu-devel@nongnu.org; Wed, 14 Oct 2009 09:14:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My3gg-0001Ll-NO for qemu-devel@nongnu.org; Wed, 14 Oct 2009 09:14:47 -0400 Received: from [199.232.76.173] (port=51170 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My3gf-0001LQ-3W for qemu-devel@nongnu.org; Wed, 14 Oct 2009 09:14:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53735) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1My3ge-0006XJ-Lz for qemu-devel@nongnu.org; Wed, 14 Oct 2009 09:14:40 -0400 Message-ID: <4AD5CEB9.80104@redhat.com> Date: Wed, 14 Oct 2009 15:14:33 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1255453026-18637-1-git-send-email-lcapitulino@redhat.com> <1255453026-18637-6-git-send-email-lcapitulino@redhat.com> <87eip7550j.fsf@pike.pond.sub.org> In-Reply-To: <87eip7550j.fsf@pike.pond.sub.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 5/9] monitor: QError support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: aliguori@us.ibm.com, kraxel@redhat.com, qemu-devel@nongnu.org, Luiz Capitulino On 10/13/2009 11:59 PM, Markus Armbruster wrote: >> > +void qemu_error_structed(QErrorCode code, const char *fmt, ...); > Needs __attribute__((format(printf, 2, 3))). If I read the code correctly, qemu_object_from_va is what in the end processes the valist and it is not exactly compatible with printf syntax. For example, in patch 7/9 you have qemu_error_structed(QERR_QDEV_NFOUND, "{ s: s }", "name", driver); Paolo