diff --git a/kernel/printk.c b/kernel/printk.c index be9a82b2f0b35c973f34a4a51fc29003b5ce32bf..f02f1f5ddc30c72d501e41c49550028015d0a5eb 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -1953,6 +1953,12 @@ void console_unlock(void) */ console_idx = log_next(console_idx); console_seq++; + /* + * We will get here again when we register a new + * CON_PRINTBUFFER console. Clear the flag so we + * will properly dump everything later. + */ + msg->flags &= ~LOG_NOCONS; goto skip; }