From 2c310d431f9064bcf335a1422d02cedf5cee44a0 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 21 Apr 2022 21:17:51 -0700 Subject: [PATCH] subsys/logging: Increase logging stack size for assert or spin_validate These two options significantly increase the amount of stack space used by the logging thread as these generate both additional logging and generate deep stacks themselves. This fixes running the tests/subsys/logging/log_core_additional/logging.add.log1 test on riscv32 with THREAD_LOCAL_STORAGE enabled. Signed-off-by: Keith Packard --- subsys/logging/Kconfig.processing | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/logging/Kconfig.processing b/subsys/logging/Kconfig.processing index f67693b15bb..62a11b9fb94 100644 --- a/subsys/logging/Kconfig.processing +++ b/subsys/logging/Kconfig.processing @@ -94,6 +94,7 @@ config LOG_PROCESS_THREAD_STACK_SIZE default 1152 if LOG_BACKEND_NET default 4096 if NO_OPTIMIZATIONS default 1024 if XTENSA + default 2048 if ASSERT || SPIN_VALIDATE default 768 help Set the internal stack size for log processing thread.