Skip to contentSkip to conversation

arm/mach-omap2: use symbolic defines for console loglevels instead of numbers

PATCH In review Alexander Kuleshov 2 participants 2 messages Mar 17, 2015 – May 20, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 arch/arm/mach-omap2/serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/serial.c +1 -1
index 57dee0c..5fb50fe 100644
@@ -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
maintainer
#1 lore raw
Quoted 4 lines · Alexander Kuleshov

<linux/printk.h> provides macros for console log level, let's use it instead of numbers.

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
index 57dee0c..5fb50fe 100644
@@ -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