[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANhBUQ3Gco8kR7xiMknFv3ryyfnfeiJO1R-rHzNWBux8b8=LSw@mail.gmail.com>
Date: Thu, 15 Aug 2019 23:33:01 +0800
From: Chuhong Yuan <hslester96@...il.com>
To: Petr Mladek <pmladek@...e.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v4 4/8] printk: Replace strncmp with str_has_prefix
On Thu, Aug 15, 2019 at 9:52 PM Petr Mladek <pmladek@...e.com> wrote:
>
> On Thu 2019-08-15 16:50:33, Sergey Senozhatsky wrote:
> > On (08/14/19 12:49), Petr Mladek wrote:
> > > On Fri 2019-08-09 15:10:34, Chuhong Yuan wrote:
> > > > strncmp(str, const, len) is error-prone because len
> > > > is easy to have typo.
> > > > The example is the hard-coded len has counting error
> > > > or sizeof(const) forgets - 1.
> > > > So we prefer using newly introduced str_has_prefix()
> > > > to substitute such strncmp to make code better.
> > > >
> > > > Signed-off-by: Chuhong Yuan <hslester96@...il.com>
> > >
> > > Reviewed-by: Petr Mladek <pmladek@...e.com>
> >
> > Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
>
> Chuong Yuan, should I take this patch via printk.git? Or will
> the entire series go via some other tree, please?
>
I think that it goes via printk.git is okay, thanks!
> Best Regards,
> Petr
Powered by blists - more mailing lists