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