Received: from eggs.gnu.org ([2001:4830:134:3::10]:36702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQzkd-00028R-Mb for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:53:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQzkc-0004nT-Q5 for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:53:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQzkc-0004nN-D6 for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:53:50 -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> <877filq2jj.fsf@blackfin.pond.sub.org> <87y4b1aknk.fsf@fimbulvetr.bsc.es> Date: Wed, 03 Feb 2016 16:53:47 +0100 In-Reply-To: <87y4b1aknk.fsf@fimbulvetr.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= Vilanova"'s message of "Wed, 03 Feb 2016 16:17:03 +0100") Message-ID: <87r3gtlrhw.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: >>> 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 inpu= ts 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 inter= face. > >> 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 develop= ers to > the right header than just not commenting it. I think that this type of p= atches > are not funny to anyone, so this risks having no metion of loc_* in the n= ear/mid > future. > > But hey, I might just be too pessimistic :) If you want to cover error locations in HACKING briefly, that's okay with me, but it needs to be correct. I'll look over your proposed patch again.