From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw5H6-0007m9-9l for qemu-devel@nongnu.org; Tue, 10 Nov 2015 04:31:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zw5H5-00079A-HG for qemu-devel@nongnu.org; Tue, 10 Nov 2015 04:31:36 -0500 Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]:33924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw5H5-00078x-Bs for qemu-devel@nongnu.org; Tue, 10 Nov 2015 04:31:35 -0500 Received: by vkbq142 with SMTP id q142so9009872vkb.1 for ; Tue, 10 Nov 2015 01:31:34 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <878u67atv0.fsf@blackfin.pond.sub.org> References: <1446909925-12201-1-git-send-email-drjones@redhat.com> <87twovpqg1.fsf@blackfin.pond.sub.org> <87oaf3jww7.fsf@blackfin.pond.sub.org> <878u67atv0.fsf@blackfin.pond.sub.org> From: Peter Maydell Date: Tue, 10 Nov 2015 09:31:15 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] hw/arm/virt: error_report cleanups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Andrew Jones , qemu-arm@nongnu.org, QEMU Developers On 9 November 2015 at 18:52, Markus Armbruster wrote: > Peter Maydell writes: >> Thanks, I had missed this useful improvement to the API. >> How does it work in cases like this where we don't have >> an Error* to fill in? > > You do what error_report_err() would do had you had an Error *err to > fill in: > In other words, you print the error message proper with error_report(), > and the additional information with error_printf(). ...so in conclusion Andrew's patch is correct as it stands and I should just apply it? :-) thanks -- PMM