From 5b86848d7776f78da26810defd9992ecfce63802 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 15 Nov 2022 21:41:58 +0100 Subject: [PATCH] sys/print_stack_usage: update MIN_SIZE Since fmt no longer has a significant advantage in stack consumption, we need to bump the `MIN_SIZE` guard that prevents causing stack overflows due to the printing of the stack consumption. --- sys/test_utils/print_stack_usage/print_stack_usage.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/test_utils/print_stack_usage/print_stack_usage.c b/sys/test_utils/print_stack_usage/print_stack_usage.c index 3514b6039cfa..a4a3283cf12b 100644 --- a/sys/test_utils/print_stack_usage/print_stack_usage.c +++ b/sys/test_utils/print_stack_usage/print_stack_usage.c @@ -26,12 +26,7 @@ #include #endif -#if MODULE_FMT -/* fmt's `print_str()` needs very little stack. ~200 total was fine on Cortex-M. */ -# define MIN_SIZE (THREAD_STACKSIZE_TINY) -#else # define MIN_SIZE (THREAD_STACKSIZE_TINY + THREAD_EXTRA_STACKSIZE_PRINTF) -#endif void print_stack_usage_metric(const char *name, void *stack, unsigned max_size) {