aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2017-01-24 15:18:29 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:10 +0200
commit17c3ec98dec6e216a581ebf638421674df1d5aef (patch)
tree445e3becbc7e7e7be81b0ace4ef0a4a1ce475fee
parentfe69f6bc51ff7ce69fa086117a36776ee0f86adc (diff)
kernel/panic.c: add missing \n
When a system panics, the "Rebooting in X seconds.." message is never printed because it lacks a new line. Fix it. Link: http://lkml.kernel.org/r/20170119114751.2724-1-jslaby@suse.cz Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--kernel/panic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 55f2f3129..85188e251 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -145,7 +145,7 @@ void panic(const char *fmt, ...)
* Delay timeout seconds before rebooting the machine.
* We can't use the "normal" timers since we just panicked.
*/
- printk(KERN_EMERG "Rebooting in %d seconds..", panic_timeout);
+ printk(KERN_EMERG "Rebooting in %d seconds..\n", panic_timeout);
for (i = 0; i < panic_timeout * 1000; i += PANIC_TIMER_STEP) {
touch_nmi_watchdog();