[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181002091627.3vm6ow4y7me2uju3@shbuild888>
Date: Tue, 2 Oct 2018 17:16:27 +0800
From: Feng Tang <feng.tang@...el.com>
To: Borislav Petkov <bp@...en8.de>
Cc: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...nel.org>,
H Peter Anvin <hpa@...ux.intel.com>,
Peter Zijlstra <peterz@...radead.org>,
"Stuart R . Anderson" <stuart.r.anderson@...el.com>,
alan@...ux.intel.com, x86@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] x86/earlyprintk: Add a force option for pciserial
device
Hi Boris,
On Mon, Oct 01, 2018 at 10:30:04PM +0200, Borislav Petkov wrote:
> On Mon, Oct 01, 2018 at 10:18:10PM +0800, Feng Tang wrote:
> > As I rechecked, the baud rate for pciserial is optional, so there may
> > be no ",baudrate" following the "force". So this 2 strncmp is to
> > cover conditions for with and without baudrate.
>
> And what guarantees you have a space after the "force"?
>
> !strncmp(s, "force ", 6)
> ^
You are right, it can't be guranteed. Can we still use strncmp(s, "force", 5)
and rely on developer to set it right? any suggestions? thanks,
- Feng
Powered by blists - more mailing lists