]> git.dujemihanovic.xyz Git - u-boot.git/commit
Add run_command_repeatable()
authorThomas Betker <thomas.betker@freenet.de>
Thu, 5 Jun 2014 18:07:57 +0000 (20:07 +0200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:25:47 +0000 (16:25 -0400)
commit1d43bfd2d54240c18ec6bfd68a57349cae839f13
treeb7d4eecf0998091adaa1bef9cc956ab98851a98c
parent73671dad49bf2368959b7bf0e30ba931ea95565c
Add run_command_repeatable()

run_command() returns 0 on success and 1 on error. However, there are some
invocations which expect 0 or 1 for success (not repeatable or repeatable)
and -1 for error; add run_command_repeatable() for this purpose.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
common/cli.c
include/common.h