diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2016-03-26 16:40:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-03-31 09:33:03 -0400 |
commit | 8fad7ec51e1b9e262e0bdd34e800ac1ea5e84dec (patch) | |
tree | 7d22d4b34799b4bd6c44d858ebdcab027f9001d4 /arch/x86/kernel | |
parent | 1e6d88ccf41c7ef2d6c99aa5e7fb9215aa0e5423 (diff) |
x86/dumpstack: Combine some printk()s
Long ago, Jiri Slaby noted that the subsequent printk()s should be
pr_cont(). Let's instead get rid of the multiple printk calls.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1459024817-27122-1-git-send-email-linux@rasmusvillemoes.dk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/dumpstack.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index 8efa57a5f29e..2bb25c3fe2e8 100644 --- a/arch/x86/kernel/dumpstack.c +++ b/arch/x86/kernel/dumpstack.c | |||
@@ -260,19 +260,12 @@ int __die(const char *str, struct pt_regs *regs, long err) | |||
260 | unsigned long sp; | 260 | unsigned long sp; |
261 | #endif | 261 | #endif |
262 | printk(KERN_DEFAULT | 262 | printk(KERN_DEFAULT |
263 | "%s: %04lx [#%d] ", str, err & 0xffff, ++die_counter); | 263 | "%s: %04lx [#%d]%s%s%s%s\n", str, err & 0xffff, ++die_counter, |
264 | #ifdef CONFIG_PREEMPT | 264 | IS_ENABLED(CONFIG_PREEMPT) ? " PREEMPT" : "", |
265 | printk("PREEMPT "); | 265 | IS_ENABLED(CONFIG_SMP) ? " SMP" : "", |
266 | #endif | 266 | debug_pagealloc_enabled() ? " DEBUG_PAGEALLOC" : "", |
267 | #ifdef CONFIG_SMP | 267 | IS_ENABLED(CONFIG_KASAN) ? " KASAN" : ""); |
268 | printk("SMP "); | 268 | |
269 | #endif | ||
270 | if (debug_pagealloc_enabled()) | ||
271 | printk("DEBUG_PAGEALLOC "); | ||
272 | #ifdef CONFIG_KASAN | ||
273 | printk("KASAN"); | ||
274 | #endif | ||
275 | printk("\n"); | ||
276 | if (notify_die(DIE_OOPS, str, regs, err, | 269 | if (notify_die(DIE_OOPS, str, regs, err, |
277 | current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP) | 270 | current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP) |
278 | return 1; | 271 | return 1; |