The problem is probably because we read it in using "strcmp". strcmp
compares two strings that end with "\0". But one of the string is read in
using read() so it didn't read in the ending '\0' character.
We should use strncmp to compare the two strings. It probably avoids the
issue.
On Tue, Feb
On Mon, Feb 21, 2022 at 5:30 AM Peter Maydell
wrote:
> On Wed, 16 Feb 2022 at 17:30, Peter Maydell
> wrote:
> >
> > On Tue, 8 Feb 2022 at 18:18, Patrick Venture wrote:
> > >
> > > From: Shengtan Mao
> > >
> > > Reviewed-by: Hao Wu
> > > Reviewed-by: Chris Rauer
> > > Signed-off-by: Shengtan
On Wed, 16 Feb 2022 at 17:30, Peter Maydell wrote:
>
> On Tue, 8 Feb 2022 at 18:18, Patrick Venture wrote:
> >
> > From: Shengtan Mao
> >
> > Reviewed-by: Hao Wu
> > Reviewed-by: Chris Rauer
> > Signed-off-by: Shengtan Mao
> > Signed-off-by: Patrick Venture
> > ---
>
>
>
> Applied to
On Tue, 8 Feb 2022 at 18:18, Patrick Venture wrote:
>
> From: Shengtan Mao
>
> Reviewed-by: Hao Wu
> Reviewed-by: Chris Rauer
> Signed-off-by: Shengtan Mao
> Signed-off-by: Patrick Venture
> ---
Applied to target-arm.next, thanks.
-- PMM