Received: from eggs.gnu.org ([2001:4830:134:3::10]:41482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQycq-0007AD-EJ for qemu-devel@nongnu.org; Wed, 03 Feb 2016 09:41:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQycl-0001aR-Cm for qemu-devel@nongnu.org; Wed, 03 Feb 2016 09:41:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQycl-0001aD-7r for qemu-devel@nongnu.org; Wed, 03 Feb 2016 09:41:39 -0500 From: Markus Armbruster References: <145442963048.1539.13602468921796488810.stgit@localhost> <145442966104.1539.5045217656318286174.stgit@localhost> <87h9hrapy0.fsf@blackfin.pond.sub.org> <87lh71dhxf.fsf@fimbulvetr.bsc.es> Date: Wed, 03 Feb 2016 15:41:36 +0100 In-Reply-To: <87lh71dhxf.fsf@fimbulvetr.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= Vilanova"'s message of "Wed, 03 Feb 2016 14:47:40 +0100") Message-ID: <877filq2jj.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 v6 5/5] doc: Introduce coding style for errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Thomas Huth , "Dr . David Alan Gilbert" , David Gibson Llu=C3=ADs Vilanova writes: > Markus Armbruster writes: > >> Llu=C3=ADs Vilanova writes: >>> Gives some general guidelines for reporting errors in QEMU. >>>=20 >>> Signed-off-by: Llu=C3=ADs Vilanova >>> --- >>> HACKING | 37 +++++++++++++++++++++++++++++++++++++ >>> 1 file changed, 37 insertions(+) >>>=20 >>> diff --git a/HACKING b/HACKING >>> index 12fbc8a..b738bce 100644 >>> --- a/HACKING >>> +++ b/HACKING [...] >>> +7.2. Errors in user inputs >>> + >>> +The 'loc_*()' functions in "include/qemu/error-report.h" will extend t= he >>> +messages from 'error_report*()' with references to locations in inputs= provided >>> +by the user (e.g., command line arguments or configuration files). > >> This is probably too terse to help much on its own. Perhaps >> error-report.h should have usage information, like error.h. > > I can try adding that, although I've barely used this part of the interfa= ce. Documenting something you're not familiar with risks messy and laborious review. I'd simply drop this section for now. If you have appetite for more after you got the rest in, you can do another patch. [...]