Skip to content

Commit 5a49116

Browse files
keith-zephyraescolar
authored andcommitted
native_posix: kconfig: Set logging mode conditionally
Projects based on native_posix get a warning indicating that the LOG_MODE_IMMEDIATE choice symbol is selected but no symbol ended up as the choice selection. Only set the logging mode if logging is enabled. Signed-off-by: Keith Short <[email protected]>
1 parent d590e0d commit 5a49116

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

boards/posix/native_posix/Kconfig.defconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ if LOG
4343
config LOG_BACKEND_NATIVE_POSIX
4444
default y if !SERIAL
4545

46+
# For native_posix we can log synchronously without any problem
47+
# Doing so will be nicer for debugging
48+
choice LOG_MODE
49+
default LOG_MODE_IMMEDIATE
50+
endchoice
51+
4652
endif # LOG
4753

4854
if CONSOLE

boards/posix/native_posix/native_posix_defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ CONFIG_SOC_POSIX=y
44
CONFIG_BOARD_NATIVE_POSIX_32BIT=y
55
CONFIG_CONSOLE=y
66
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000
7-
# For native_posix we can log synchronously without any problem
8-
# Doing so will be nicer for debugging
9-
CONFIG_LOG_MODE_IMMEDIATE=y

0 commit comments

Comments
 (0)