Re: [PATCH v4 1/2] printk: Do not delay messages which aren't solicited by any console

From: Chris Down
Date: Thu Apr 20 2023 - 09:47:51 EST


John Ogness writes:
On 2023-04-20, Chris Down <chris@xxxxxxxxxxxxxx> wrote:
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index fd0c9f913940..06f16a5f1516 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -1289,15 +1289,13 @@ static int __init boot_delay_setup(char *str)
}
early_param("boot_delay", boot_delay_setup);

-static void boot_delay_msec(int level)
+static void boot_delay_msec(void)
{
unsigned long long k;
unsigned long timeout;

if ((boot_delay == 0 || system_state >= SYSTEM_RUNNING)

^----- you will need to remove this paren as well

That'll teach me to compile test without remembering it also needs CONFIG_BOOT_PRINTK_DELAY=y :-) Thanks.


- || suppress_message_printing(level)) {
return;
- }

John Ogness