]> git.sur5r.net Git - u-boot/commitdiff
Panic when no command line processing can be performed
authorSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 01:07:32 +0000 (19:07 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:10 +0000 (12:16 -0400)
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>
common/main.c

index 1a2ef39cca9c1b9ec83c15f3a25e805fd11c673c..42bbb507332c8de234723d02024f787da4501f59 100644 (file)
@@ -72,4 +72,5 @@ void main_loop(void)
        autoboot_command(s);
 
        cli_loop();
+       panic("No CLI available");
 }