From: Alexander Kuleshov Date: Tue, 17 Mar 2015 10:45:44 +0000 (+0600) Subject: ARM: OMAP2+: use symbolic defines for console loglevels instead of numbers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=026df6ca90cf56aa756dd5ed077a6e90a523eff7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: OMAP2+: use symbolic defines for console loglevels instead of numbers provides macros for console log level, let's use it instead of numbers. Signed-off-by: Alexander Kuleshov Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 57dee0c7cd2b..5fb50fe54153 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -203,7 +203,7 @@ static int __init omap_serial_early_init(void) if (cmdline_find_option(uart_name)) { console_uart_id = uart->num; - if (console_loglevel >= 10) { + if (console_loglevel >= CONSOLE_LOGLEVEL_DEBUG) { uart_debug = true; pr_info("%s used as console in debug mode: uart%d clocks will not be gated", uart_name, uart->num);