From: Bo Sun <bo@mboxify.com>
To: barebox@lists.infradead.org
Subject: [PATCH] barebox.h: correct barebox_main default comment
Date: Tue, 1 Jul 2025 20:34:13 +0800 [thread overview]
Message-ID: <20250701123413.1755385-1-bo@mboxify.com> (raw)
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@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);
next reply other threads:[~2025-07-01 13:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-01 12:34 Bo Sun [this message]
2025-07-02 6:15 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250701123413.1755385-1-bo@mboxify.com \
--to=bo@mboxify.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox