diff options
author | Simon Glass <sjg@chromium.org> | 2016-03-14 04:07:32 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-22 19:16:10 +0300 |
commit | 045e6f0d4f49c83375cd30b35fb7f02d7a79478e (patch) | |
tree | b0dcb7f2ecbf6c19728c804d04042f308ed38992 /common/main.c | |
parent | 2b6793de2543e16ac6b8e792cef71ce7bb6ea1a7 (diff) | |
download | u-boot-045e6f0d4f49c83375cd30b35fb7f02d7a79478e.tar.xz |
Panic when no command line processing can be performed
Normally board_run_command() will handle command processed. But if for some
reason it returns then we should panic to avoid further processing.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c index 1a2ef39cca..42bbb50733 100644 --- a/common/main.c +++ b/common/main.c @@ -72,4 +72,5 @@ void main_loop(void) autoboot_command(s); cli_loop(); + panic("No CLI available"); } |