From: Martin Hundebøll <martin@xxxxxxxxxx> Make sure printed messages are in fact printed before putting the system down. Signed-off-by: Martin Hundebøll <martin@xxxxxxxxxx> --- kernel/reboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/reboot.c b/kernel/reboot.c index 22c16e2564cc..e3fa5613257f 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -283,6 +283,7 @@ void kernel_restart(char *cmd) else pr_emerg("Restarting system with command '%s'\n", cmd); kmsg_dump(KMSG_DUMP_SHUTDOWN); + pr_flush(1000, false); machine_restart(cmd); } EXPORT_SYMBOL_GPL(kernel_restart); -- 2.44.0