From fb2d9ecde5e4d240e4ddd89e913d05e4baf3406a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Fri, 5 Jul 2024 12:19:22 +0200 Subject: [PATCH] samples: zbus: work_queue: Enable synchronous printk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit twister expects regex print from logging used in the sample. Sample is using minimal logging which does not protect against logs being interleaved if printed from various contexts. Minimal logging is just mapping of logging API to printk. Add CONFIG_PRINTK_SYNC to ensure that printing of each log is synchronous (with lock) and logs are never interleaved. Signed-off-by: Krzysztof Chruściński --- samples/subsys/zbus/work_queue/prj.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/subsys/zbus/work_queue/prj.conf b/samples/subsys/zbus/work_queue/prj.conf index 53015f7781d..e5ffd67d501 100644 --- a/samples/subsys/zbus/work_queue/prj.conf +++ b/samples/subsys/zbus/work_queue/prj.conf @@ -2,5 +2,6 @@ CONFIG_LOG=y CONFIG_THREAD_NAME=y CONFIG_ASSERT=y CONFIG_LOG_MODE_MINIMAL=y +CONFIG_PRINTK_SYNC=y CONFIG_ZBUS=y CONFIG_ZBUS_LOG_LEVEL_INF=y