Received: from eggs.gnu.org ([2001:4830:134:3::10]:41638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRbNt-0001E0-Ly for qemu-devel@nongnu.org; Fri, 05 Feb 2016 03:04:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRbNq-0007I6-Fj for qemu-devel@nongnu.org; Fri, 05 Feb 2016 03:04:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRbNq-0007I1-A2 for qemu-devel@nongnu.org; Fri, 05 Feb 2016 03:04:50 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id CCCA3BCFE0 for ; Fri, 5 Feb 2016 08:04:49 +0000 (UTC) From: Markus Armbruster References: <1454522628-28294-1-git-send-email-armbru@redhat.com> <87egct8uy9.fsf@fimbulvetr.bsc.es> <87io25f0ba.fsf@blackfin.pond.sub.org> <87r3gs7hi9.fsf@fimbulvetr.bsc.es> Date: Fri, 05 Feb 2016 09:04:47 +0100 In-Reply-To: <87r3gs7hi9.fsf@fimbulvetr.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= Vilanova"'s message of "Thu, 04 Feb 2016 14:05:34 +0100") Message-ID: <87fux7d1ls.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/2] error: Documentation updates List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: thuth@redhat.com, dgilbert@redhat.com Llu=C3=ADs Vilanova writes: > Markus Armbruster writes: > >> Llu=C3=ADs Vilanova writes: >>> Markus Armbruster writes: >>>=20 >>>> This overlaps with parts of Llu=C3=ADs's "[RFC][PATCH v6 0/5] utils: >>>> Improve and document error reporting". Llu=C3=ADs, feel free to integ= rate >>>> my patches into a respin of your series. You can also respin on top >>>> of my series. >>>=20 >>> Reviewed-by: Llu=C3=ADs Vilanova >>>=20 >>> I'm happy with this series as a replacement for mine. Two nitpicks: >>>=20 >>> * The error.h comments point to assert() instead of abort() as a replac= ement for >>> error_setg(&error_abort) (while your HACKING says otherwise). > >> Where? > > Documentation on error_setg() (last phrase) vs HACKING (also last phrase). Got it. error_setg()'s comment: Likewise, don't error_setg(&error_abort, ...), use assert(). This is advice on what to do. HACKING: Note that &error_fatal is just another way to exit(1), and &error_abort is just another way to abort(). This tries to extend the admonition on exit() and abort() to &error_fatal and &error_abort. I'm open for better ways to word it. However, I feel this section of HACKING should not go into detail on what to do, but leave that to error.h. >>> * HACKING does not explicitly point out that exit(1) is the preferred e= xit code. > >> Does it need saying? We don't seem to have a weird exit() problem in >> new code. > >> The lower HACKING's signal-to-noise ratio gets, the fewer people will >> actually read it attentively. > > Fine by me. Thanks!