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
the string

"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
reboot.

Change-Id: I2528de7fd297a8ce9186b8a2ffe18b365773a9e9
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 1310420..dc54a34 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -3195,6 +3195,8 @@
 	struct kmsg_dumper *dumper;
 	unsigned long flags;
 
+	cont_flush(LOG_NEWLINE);
+
 	if ((reason > KMSG_DUMP_OOPS) && !always_kmsg_dump)
 		return;