Received: from eggs.gnu.org ([140.186.70.92]:39860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxM7p-00038K-T4 for qemu-devel@nongnu.org; Tue, 14 Feb 2012 12:25:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxM7f-0008WP-IF for qemu-devel@nongnu.org; Tue, 14 Feb 2012 12:25:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxM7f-0008WD-9F for qemu-devel@nongnu.org; Tue, 14 Feb 2012 12:24:59 -0500 From: Markus Armbruster References: <1328623766-12287-1-git-send-email-armbru@redhat.com> <1328623766-12287-10-git-send-email-armbru@redhat.com> <4F313F86.7080103@us.ibm.com> Date: Tue, 14 Feb 2012 18:24:55 +0100 In-Reply-To: (Markus Armbruster's message of "Thu, 09 Feb 2012 17:05:44 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH 09/19] sockets: Chardev open error reporting, sockets part List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: kwolf@redhat.com, qemu-devel@nongnu.org Markus Armbruster writes: > Anthony Liguori writes: [Anthony asking for error_set() instead of error_report()...] >> Basically, same thing here and the remaining functions. Let's not >> introduce additional uses of error_report(). >> >> That said, I imagine you don't want to introduce a bunch of error >> types for these different things and that's probably not productive >> anyway. [...] >> So let's compromise and introduce a generic QERR_INTERNAL_ERROR that >> takes a single human readable string as an argument. We can have a >> wrapper for it that also records location information in the error >> object. > > This series goes from stderr to error_report(). That's a relatively > simple step, which makes it relatively easy to review. I'm afraid > moving all the way to error.h in one step wouldn't be as easy. Kevin > suggests to do it in a follow-up series, and I agree. > > Can you point to an existing conversion from error_report() to error.h, > to give us an idea how it's supposed to be done? Ping?