From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3rnU-0000nk-S1 for qemu-devel@nongnu.org; Fri, 30 Oct 2009 09:45:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3rnN-0000lq-MX for qemu-devel@nongnu.org; Fri, 30 Oct 2009 09:45:42 -0400 Received: from [199.232.76.173] (port=49757 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3rnM-0000la-Po for qemu-devel@nongnu.org; Fri, 30 Oct 2009 09:45:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4764) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3rnM-0005Tu-Dr for qemu-devel@nongnu.org; Fri, 30 Oct 2009 09:45:36 -0400 Message-ID: <4AEAEDF1.1020509@redhat.com> Date: Fri, 30 Oct 2009 14:45:21 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1256841750-15228-1-git-send-email-lcapitulino@redhat.com> <4AEA133A.8010906@redhat.com> <20091030102809.1c520282@doriath> <4AEAE261.5030908@redhat.com> <4AEAE56E.8040309@us.ibm.com> In-Reply-To: <4AEAE56E.8040309@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RFC 0/7] QError v1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, hollisb@linux.vnet.ibm.com, Gerd Hoffmann , Luiz Capitulino On 10/30/2009 02:09 PM, Anthony Liguori wrote: > > Okay, let's get more clever then and do: > > #define QERR_DEV_NFOUND "{ 'code': 404, 'name': %s}" > > So we can do: > > qemu_error_structured(QERR_DEV_NFOUND, driver); > > Such that we still get printf style parameter checking. That's clever indeed. :-) But no more clever than other things in qemu, I think I like it. :-) Paolo