Skip to content

Commit b17b2b0

Browse files
committed
core/lib/init: skip boot message if stdio_null is used
With `stdio_null` no one is reading the boot message anyway, so let's safe some ROM.
1 parent f9aab53 commit b17b2b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static void *main_trampoline(void *arg)
5656
auto_init();
5757
}
5858

59-
if (!IS_ACTIVE(CONFIG_SKIP_BOOT_MSG)) {
59+
if (!IS_ACTIVE(CONFIG_SKIP_BOOT_MSG) && !IS_USED(MODULE_STDIO_NULL)) {
6060
LOG_INFO(CONFIG_BOOT_MSG_STRING "\n");
6161
}
6262

0 commit comments

Comments
 (0)