logging: Enable LOG_PRINTK if PRINTK is enabled

This change will enable the logging system to handle printk() calls by
default if printk support is enabled, which improves output resiliency
when logging, mcumgr and printk calls are used. Will disable keep
LOG_PRINTK disabled for tests which are not using the new API as
moving to LOG_PRINTK causes test data to be output to a different UART
in the old test system.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2022-09-23 14:46:24 +01:00 committed by Carles Cufí
commit c5a40e3a9d

View file

@ -7,6 +7,7 @@ if !LOG_MODE_MINIMAL
config LOG_PRINTK
bool "Process printk messages"
default y if PRINTK && (!ZTEST || ZTEST_NEW_API)
help
LOG_PRINTK messages are formatted in place and logged unconditionally.