kernel/printk: use symbolic defines for console loglevels
commita8fe19ebfbfd90ec17c02284717238b02efb9580
authorBorislav Petkov <bp@suse.de>
Wed, 4 Jun 2014 23:11:46 +0000 (4 16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:17 +0000 (4 16:54 -0700)
treeb0bcae3df8f0f739993ede45c81c031d32d5edcd
parent84b5ec8a9df86f3dcaaaf912715db35e4852d1da
kernel/printk: use symbolic defines for console loglevels

... instead of naked numbers.

Stuff in sysrq.c used to set it to 8 which is supposed to mean above
default level so set it to DEBUG instead as we're terminating/killing all
tasks and we want to be verbose there.

Also, correct the check in x86_64_start_kernel which should be >= as
we're clearly issuing the string there for all debug levels, not only
the magical 10.

Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Joe Perches <joe@perches.com>
Cc: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/head64.c
arch/x86/platform/uv/uv_nmi.c
drivers/nubus/nubus.c
drivers/tty/sysrq.c
include/linux/printk.h
init/main.c
kernel/debug/kdb/kdb_bt.c
kernel/debug/kdb/kdb_io.c
kernel/debug/kdb/kdb_main.c
kernel/printk/printk.c