From 04f174f09249f1efaffb09a21e02539216e02038 Mon Sep 17 00:00:00 2001 From: hhb Date: Fri, 8 Mar 2013 16:11:45 +0800 Subject: [PATCH] rk_serial: set DBG_PORT to CONFIG_RK_DEBUG_UART and close DEBUG --- drivers/tty/serial/rk_serial.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/rk_serial.c b/drivers/tty/serial/rk_serial.c index 682e62c04309..3157ce2f1e47 100644 --- a/drivers/tty/serial/rk_serial.c +++ b/drivers/tty/serial/rk_serial.c @@ -135,8 +135,13 @@ static struct uart_driver serial_rk_reg; #ifdef CONFIG_ARCH_RK29 #define DBG_PORT 1 //DBG_PORT which uart is used to print log message #else -#define DBG_PORT -1 //DBG_PORT which uart is used to print log message +#ifndef CONFIG_RK_DEBUG_UART //DBG_PORT which uart is used to print log message +#define DBG_PORT 2 +#else +#define DBG_PORT CONFIG_RK_DEBUG_UART +#endif #endif + #ifdef CONFIG_SERIAL_CORE_CONSOLE #define uart_console(port) ((port)->cons && (port)->cons->index == (port)->line) #else @@ -158,7 +163,7 @@ static void dbg(const char *fmt, ...) } //enable log output -#define DEBUG 1 +#define DEBUG 0 static int log_port = -1; module_param(log_port, int, S_IRUGO|S_IWUSR); -- 2.34.1