arm/mach-omap2: use symbolic defines for console loglevels instead of numbers
Subsystems (3)
PATCH v2 1/1 arm/mach-omap2: use symbolic defines for console loglevels instead of numbers
<linux/printk.h> provides macros for console log level, let's use it instead of numbers.
Signed-off-by Alexander Kuleshov <[email protected]>
--- arch/arm/mach-omap2/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/serial.c +1 -1
@@ -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);
Signature · 1 line
2.3.3.472.g20ceeac.dirty
Tony Lindgren
maintainerQuoted 4 lines · Alexander Kuleshov
<
linux/printk.h> provides macros for console log level, let's use it instead of numbers.Signed-off-by Alexander Kuleshov <[email protected]>
Applying into omap-for-v4.2/cleanup thanks.
Tony
Quoted 20 lines
--- arch/arm/mach-omap2/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-omap2/serial.c +1
-1@@ -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);Signature · 1 line
2.3.3.472.g20ceeac.dirty