[U-Boot] [PATCH V2 1/2] test/py: fix off-by-one error in spawn matching code

Simon Glass sjg at chromium.org
Sat Feb 6 21:30:03 CET 2016


On 5 February 2016 at 18:04, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> A regex match object's .end() value is already the index after the match,
> not the index of the last character in the match, so there's no need to
> add 1 to point past the match.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> v2: New patch.
> ---
>  test/py/u_boot_spawn.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Simon Glass <sjg at chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list