summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-13 19:07:32 -0600
committerTom Rini <trini@konsulko.com>2016-03-22 12:16:10 -0400
commit045e6f0d4f49c83375cd30b35fb7f02d7a79478e (patch)
treeb0dcb7f2ecbf6c19728c804d04042f308ed38992 /common
parent2b6793de2543e16ac6b8e792cef71ce7bb6ea1a7 (diff)
downloadu-boot-imx-045e6f0d4f49c83375cd30b35fb7f02d7a79478e.zip
u-boot-imx-045e6f0d4f49c83375cd30b35fb7f02d7a79478e.tar.gz
u-boot-imx-045e6f0d4f49c83375cd30b35fb7f02d7a79478e.tar.bz2
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')
-rw-r--r--common/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c
index 1a2ef39..42bbb50 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");
}