[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1672625a-5f2b-33db-c516-42abb070a26e@huawei.com>
Date: Sat, 16 May 2020 15:19:28 +0800
From: "liwei (GF)" <liwei391@...wei.com>
To: Doug Anderson <dianders@...omium.org>
CC: Jason Wessel <jason.wessel@...driver.com>,
Daniel Thompson <daniel.thompson@...aro.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
<kgdb-bugreport@...ts.sourceforge.net>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kdb: Make the internal env 'KDBFLAGS' undefinable
Hi Douglas,
On 2020/5/14 7:41, Doug Anderson wrote:
>> - }
>> + } else if (strcmp(argv[1], "KDBFLAGS") == 0)
>> + return KDB_NOPERM;
>
> One slight nit is that my personal preference is that if one half of
> an "if/else" needs braces then both halves should have braces. I
Thanks for spotting it. Refer to Documentation/process/coding-style.rst, i
will fix it in the v2.
> don't know what Daniel and Jason's policies are, though. In any case,
> not that I've ever used the KDBDEBUG functionality, but your change
> seems sane. Without it if I set "KDBDEBUG" and "KDBFLAGS" and then
> type "env" I see the flags listed twice, but one is real and one is
> fake.
>
> Reviewed-by: Douglas Anderson <dianders@...omium.org>
>
> -Doug
>
Thanks,
Wei
Powered by blists - more mailing lists