Re: [PATCH printk v3 06/19] printk: Flush console on unregister_console()

From: Petr Mladek
Date: Fri Jul 26 2024 - 09:23:36 EST


On Mon 2024-07-22 19:25:26, John Ogness wrote:
> Ensure consoles have flushed pending records before
> unregistering. The console should print up to at least its
> related "console disabled" record.
>
> Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>

The code looks hairy. But it is because of the unconditional CON_ENABLED
flag handling. I do not see any better solution.

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr