Re: [PATCH] powerpc/xmon: Fix whitespace handling in getstring()

2020-02-19 Thread Michael Ellerman
On Mon, 2020-02-17 at 04:13:43 UTC, Oliver O'Halloran wrote: > The ls (lookup symbol) and zr (reboot) commands use xmon's getstring() > helper to read a string argument from the xmon prompt. This function skips > over leading whitespace, but doesn't check if the first "non-whitespace" > character

[PATCH] powerpc/xmon: Fix whitespace handling in getstring()

2020-02-16 Thread Oliver O'Halloran
The ls (lookup symbol) and zr (reboot) commands use xmon's getstring() helper to read a string argument from the xmon prompt. This function skips over leading whitespace, but doesn't check if the first "non-whitespace" character is a newline which causes some odd behaviour ( indicates a the enter