From b010e9cb40b774ae1e6d977ecbf9c7773199b544 Mon Sep 17 00:00:00 2001 From: Aleksander Kaminski Date: Wed, 25 Oct 2023 12:31:18 +0200 Subject: [PATCH] imx6ull-tty: Init libklog on console only DONE: RTOS-662 --- tty/imx6ull-uart/imx6ull-uart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tty/imx6ull-uart/imx6ull-uart.c b/tty/imx6ull-uart/imx6ull-uart.c index 4680aeb62..11b8b2c4a 100644 --- a/tty/imx6ull-uart/imx6ull-uart.c +++ b/tty/imx6ull-uart/imx6ull-uart.c @@ -729,10 +729,9 @@ int main(int argc, char **argv) if (is_console != 0) { create_dev(&dev, _PATH_CONSOLE); + libklog_init(libklog_clbk); } - libklog_init(libklog_clbk); - uart_thr((void *)port); return 0;