* [PATCH v2] arm/mach-omap2: use symbolic defines for console loglevels instead of numbers
@ 2015-03-17 10:45 Alexander Kuleshov
2015-05-20 17:13 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kuleshov @ 2015-03-17 10:45 UTC (permalink / raw)
To: Tony Lindgren, Russell King; +Cc: linux-kernel, Alexander Kuleshov
<linux/printk.h> provides macros for console log level, let's use it
instead of numbers.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
arch/arm/mach-omap2/serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 57dee0c..5fb50fe 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);
--
2.3.3.472.g20ceeac.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] arm/mach-omap2: use symbolic defines for console loglevels instead of numbers
2015-03-17 10:45 [PATCH v2] arm/mach-omap2: use symbolic defines for console loglevels instead of numbers Alexander Kuleshov
@ 2015-05-20 17:13 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2015-05-20 17:13 UTC (permalink / raw)
To: Alexander Kuleshov; +Cc: Russell King, linux-kernel
* Alexander Kuleshov <kuleshovmail@gmail.com> [150317 03:46]:
> <linux/printk.h> provides macros for console log level, let's use it
> instead of numbers.
>
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Applying into omap-for-v4.2/cleanup thanks.
Tony
> ---
> arch/arm/mach-omap2/serial.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
> index 57dee0c..5fb50fe 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);
> --
> 2.3.3.472.g20ceeac.dirty
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-20 17:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-17 10:45 [PATCH v2] arm/mach-omap2: use symbolic defines for console loglevels instead of numbers Alexander Kuleshov
2015-05-20 17:13 ` Tony Lindgren
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.