[U-Boot] [PATCH v2 6/9] Panic when no command line processing can be performed

Simon Glass sjg at chromium.org
Mon Mar 14 02:07:32 CET 2016


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 at chromium.org>
---

Changes in v2:
- Use panic() instead of hang()

 common/main.c | 1 +
 1 file changed, 1 insertion(+)

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");
 }
-- 
2.7.0.rc3.207.g0ac5344



More information about the U-Boot mailing list