Received: from eggs.gnu.org ([2001:4830:134:3::10]:50471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQzB9-0008QH-UT for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:17:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQzB6-000224-Fm for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:17:11 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:56932 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQzB6-00020J-3j for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:17:08 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <145442963048.1539.13602468921796488810.stgit@localhost> <145442966104.1539.5045217656318286174.stgit@localhost> <87h9hrapy0.fsf@blackfin.pond.sub.org> <87lh71dhxf.fsf@fimbulvetr.bsc.es> <877filq2jj.fsf@blackfin.pond.sub.org> Date: Wed, 03 Feb 2016 16:17:03 +0100 In-Reply-To: <877filq2jj.fsf@blackfin.pond.sub.org> (Markus Armbruster's message of "Wed, 03 Feb 2016 15:41:36 +0100") Message-ID: <87y4b1aknk.fsf@fimbulvetr.bsc.es> 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: Markus Armbruster Cc: Stefan Hajnoczi , Thomas Huth , David Gibson , qemu-devel@nongnu.org, "Dr . David Alan Gilbert" Markus Armbruster writes: > Llu=C3=ADs Vilanova writes: >> Markus Armbruster writes: >>=20 >>> 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 = the >>>> +messages from 'error_report*()' with references to locations in input= s provided >>>> +by the user (e.g., command line arguments or configuration files). >>=20 >>> This is probably too terse to help much on its own. Perhaps >>> error-report.h should have usage information, like error.h. >>=20 >> I can try adding that, although I've barely used this part of the interf= ace. > 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. Mmmm, I still think that a terse reference is better at directing developer= s to the right header than just not commenting it. I think that this type of pat= ches are not funny to anyone, so this risks having no metion of loc_* in the nea= r/mid future. But hey, I might just be too pessimistic :) Thanks, Lluis