projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc705a
)
kernel/panic.c: add missing \n
author
Jiri Slaby
<
[email protected]
>
Tue, 24 Jan 2017 23:18:29 +0000
(15:18 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 25 Jan 2017 00:26:14 +0000
(16:26 -0800)
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/
[email protected]
Signed-off-by: Jiri Slaby <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/panic.c
patch
|
blob
|
history
diff --git
a/kernel/panic.c
b/kernel/panic.c
index 901c4fb46002e38c98394110c49aa50230d58180..08aa88dde7de806d4cb2b14fd93e87be8dd94501 100644
(file)
--- a/
kernel/panic.c
+++ b/
kernel/panic.c
@@
-249,7
+249,7
@@
void panic(const char *fmt, ...)
* Delay timeout seconds before rebooting the machine.
* We can't use the "normal" timers since we just panicked.
*/
- pr_emerg("Rebooting in %d seconds..", panic_timeout);
+ pr_emerg("Rebooting in %d seconds..
\n
", panic_timeout);
for (i = 0; i < panic_timeout * 1000; i += PANIC_TIMER_STEP) {
touch_nmi_watchdog();