printk: Flush incomplete log messages before reboot
The following pr_emerg() statement in kernel/panic.c is missing a line
feed character as the last character in the format string:
pr_emerg("Rebooting in %d seconds..", panic_timeout);
As a result, the message is not immediately stored in the log buffer and
is subsequently lost unless another printk() statement is executed prior
to the reboot.
Let's flush these incomplete log lines prior to reboot to ensure that
"Rebooting in 3 seconds.."
is preserved as the last log message in the buffer. Otherwise, a user
might assume that printk_persist lost the last few message prior to
1 file changed