Skip to content

native_posix: kconfig: Set logging mode conditionally #34141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions boards/posix/native_posix/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -43,6 +43,12 @@ if LOG
config LOG_BACKEND_NATIVE_POSIX
default y if !SERIAL

# For native_posix we can log synchronously without any problem
# Doing so will be nicer for debugging
choice LOG_MODE
default LOG_MODE_IMMEDIATE
endchoice

endif # LOG

if CONSOLE
3 changes: 0 additions & 3 deletions boards/posix/native_posix/native_posix_defconfig
Original file line number Diff line number Diff line change
@@ -4,6 +4,3 @@ CONFIG_SOC_POSIX=y
CONFIG_BOARD_NATIVE_POSIX_32BIT=y
CONFIG_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000
# For native_posix we can log synchronously without any problem
# Doing so will be nicer for debugging
CONFIG_LOG_MODE_IMMEDIATE=y