commit | 283329017cc755fecede8f7f2e5fb122c0b4a8dd | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Mar 13 19:07:32 2016 -0600 |
committer | Tom Rini <trini@konsulko.com> | Tue Mar 22 12:16:10 2016 -0400 |
tree | b0dcb7f2ecbf6c19728c804d04042f308ed38992 | |
parent | e0f1280a0d2cc663cf673ad8f9d603b46d1b4162 [diff] |
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>
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 @@ autoboot_command(s); cli_loop(); + panic("No CLI available"); }