From bd9836be8c81f00337db226fef2e029b4d844821 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Sat, 6 Jan 2024 15:12:08 +0100 Subject: [PATCH] subsys logging: Enable native backend if possible Let's always enable the native_posix backend even if the serial is used. Both can be used at the same time, and: a) users expect the logger output in the invoking shell even if they enable the UART b) Since printk is routed to the logger twister actually needs it for tests to pass as for native platforms it looks into the stdout of the process. Signed-off-by: Alberto Escolar Piedras --- subsys/logging/backends/Kconfig.native_posix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/logging/backends/Kconfig.native_posix b/subsys/logging/backends/Kconfig.native_posix index bde09c9f244..4c734881974 100644 --- a/subsys/logging/backends/Kconfig.native_posix +++ b/subsys/logging/backends/Kconfig.native_posix @@ -4,7 +4,7 @@ config LOG_BACKEND_NATIVE_POSIX bool "Native backend" depends on ARCH_POSIX - default y if !SERIAL + default y select LOG_OUTPUT help Enable backend in native_posix