]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/dumpstack: Unify show_regs()
authorBorislav Petkov <bp@suse.de>
Tue, 6 Mar 2018 09:49:14 +0000 (10:49 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Mar 2018 11:04:59 +0000 (12:04 +0100)
commit16d1cb0bc43642a4d934631a73c5210ad2499e2f
treeb01eaa6820b66d4abf1778acb3f78e5c3b5c1458
parent9558080935e0bd744d68a7e1747a7117310623cf
x86/dumpstack: Unify show_regs()

The 32-bit version uses KERN_EMERG and commit

  b0f4c4b32c8e ("bugs, x86: Fix printk levels for panic, softlockups and stack dumps")

changed the 64-bit version to KERN_DEFAULT. The same justification in
that commit that those messages do not belong in the terminal, holds
true for 32-bit also, so make it so.

Make code_bytes static, while at it.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Link: https://lkml.kernel.org/r/20180306094920.16917-4-bp@alien8.de
arch/x86/include/asm/stacktrace.h
arch/x86/kernel/dumpstack.c
arch/x86/kernel/dumpstack_32.c
arch/x86/kernel/dumpstack_64.c