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 <keithp@keithp.com>
This commit is contained in:
Keith Packard 2022-04-21 21:17:51 -07:00 committed by Stephanos Ioannidis
commit 2c310d431f

View file

@ -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.