From 52a895fecdcfd36199eb600998fca70eb3bebd57 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 3 Sep 2025 15:46:03 -0600 Subject: [PATCH] ulib: Disable console messages By default U-Boot shows the console settings on startup, e.g.: In: serial,vidconsole Out: serial,vidconsole Err: serial,vidconsole These messages are useful for the user but not for an application using U-Boot as a library. Disable them. Signed-off-by: Simon Glass --- common/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/console.c b/common/console.c index 2073a9878a5..77f70588488 100644 --- a/common/console.c +++ b/common/console.c @@ -1301,7 +1301,7 @@ int console_init_r(void) done: - if (!IS_ENABLED(CONFIG_SYS_CONSOLE_INFO_QUIET)) + if (!IS_ENABLED(CONFIG_SYS_CONSOLE_INFO_QUIET) && !gd_ulib()) stdio_print_current_devices(); #ifdef CONFIG_VIDCONSOLE_AS_LCD