Received: from eggs.gnu.org ([208.118.235.92]:56135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T05lV-00063R-68 for qemu-devel@nongnu.org; Sat, 11 Aug 2012 03:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T05lS-000633-Cw for qemu-devel@nongnu.org; Sat, 11 Aug 2012 03:05:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T05lS-00062v-5C for qemu-devel@nongnu.org; Sat, 11 Aug 2012 03:05:38 -0400 From: Markus Armbruster References: <1344620653-29067-1-git-send-email-lcapitulino@redhat.com> Date: Sat, 11 Aug 2012 09:05:33 +0200 In-Reply-To: <1344620653-29067-1-git-send-email-lcapitulino@redhat.com> (Luiz Capitulino's message of "Fri, 10 Aug 2012 14:43:38 -0300") Message-ID: <87has9nc1u.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 00/35]: add new error format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: kwolf@redhat.com, aliguori@us.ibm.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, pbonzini@redhat.com, eblake@redhat.com Luiz Capitulino writes: [...] > This series implements the 'Plan for error handling in QMP' as described > by Anthony in this email: > > http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg03764.html > > Basically, this replaces almost all error classes by GenericError (the > exception are a few error classes used by libvirt) and drops the error > data memeber. This also adds a free form string to error_set(). > > On the wire, we go from: > > { "error": { "class": "DeviceNotRemovable", > "data": { "device": "virtio0" }, > "desc": "Device 'virtio0' is not removable" } } > > to: > > { "error": { "class": "GenericError", > "desc": "Device 'virtio0' is not removable" } } > > Internally, we go from: > > void error_set(Error **err, const char *fmt, ...); > > to: > > void error_set(Error **err, ErrorClass err_class, const char *fmt, ...); Glad to see this change in good shape in time for the release. Thanks, Luiz! Reviewed-by: Markus Armbruster