[PATCH] barebox.h: correct barebox_main default comment
Bo Sun
bo at mboxify.com
Tue Jul 1 05:34:13 PDT 2025
The comment incorrectly states that barebox_main defaults to
run_shell() when a shell is enabled. In fact, it defaults to
run_init() when both shell and command support are enabled.
Update the comment to match the actual logic.
Signed-off-by: Bo Sun <bo at mboxify.com>
---
include/barebox.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/barebox.h b/include/barebox.h
index 1b291129e9..6f3179d4bd 100644
--- a/include/barebox.h
+++ b/include/barebox.h
@@ -14,7 +14,7 @@ void __noreturn hang (void);
/*
* Function pointer to the main barebox function. Defaults
- * to run_shell() when a shell is enabled.
+ * to run_init() when shell and command support are enabled.
*/
extern int (*barebox_main)(void);
More information about the barebox
mailing list