From: 黄涛 Date: Thu, 1 Aug 2013 01:27:14 +0000 (+0800) Subject: rk_serial: fix compile error when printascii no define X-Git-Tag: firefly_0821_release~6802 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5161a4faf2a48c329f56c36e5112cfecb6ddefb4;p=firefly-linux-kernel-4.4.55.git rk_serial: fix compile error when printascii no define --- diff --git a/drivers/tty/serial/rk_serial.c b/drivers/tty/serial/rk_serial.c index 1818c45e02ba..5272a00100af 100644 --- a/drivers/tty/serial/rk_serial.c +++ b/drivers/tty/serial/rk_serial.c @@ -161,7 +161,9 @@ static void dbg(const char *fmt, ...) vsprintf(buff, fmt, va); va_end(va); +#if defined(CONFIG_DEBUG_LL) || defined(CONFIG_RK_EARLY_PRINTK) printascii(buff); +#endif } //enable log output