[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFnufp3O5GHPdAuY8tm3jGWfSJXnziinTkiKV5ak7nAYWEnOdw@mail.gmail.com>
Date: Thu, 5 Nov 2020 19:14:27 +0100
From: Matteo Croce <mcroce@...ux.microsoft.com>
To: Petr Mladek <pmladek@...e.com>
Cc: linux-kernel@...r.kernel.org, Guenter Roeck <linux@...ck-us.net>,
Arnd Bergmann <arnd@...db.de>, Mike Rapoport <rppt@...nel.org>,
Kees Cook <keescook@...omium.org>,
Pavel Tatashin <pasha.tatashin@...een.com>,
Robin Holt <robinmholt@...il.com>,
Fabian Frederick <fabf@...net.be>,
Andrew Morton <akpm@...ux-foundation.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH v3 2/3] reboot: fix overflow parsing reboot cpu number
On Thu, Nov 5, 2020 at 7:09 PM Petr Mladek <pmladek@...e.com> wrote:
> > + if (reboot_cpu >= num_possible_cpus()) {
> > + pr_err("Ignoring the CPU number in reboot= option. "
> > + "CPU %d exceeds possible cpu number %d\n",
>
> ./scripts/checkpatch.pl used to complain that printk() format parameter should stay
> on a single line (ignoring 80 char limit). It helps when people are
> trying to find which code printed a particular message.
>
> It is not a big deal here because %d does not allow to search the
> entire message anyway.
>
> I am not sure if Andrew would like to get this fixed. In both cases:
>
> Reviewed-by: Petr Mladek <pmladek@...e.com>
>
Yes, I saw this warning, but to suppress it I had to write a 133 char
line, much beyond even the new 100 char limit.
I expect a smart user to just grep the first half of the string, like
"Ignoring the CPU number in reboot="
Regards,
--
per aspera ad upstream
Powered by blists - more mailing lists