diff --git a/include/debug/stack.h b/include/debug/stack.h index 7239a0fd8a3..53405e63458 100644 --- a/include/debug/stack.h +++ b/include/debug/stack.h @@ -107,7 +107,7 @@ static inline void log_stack_usage(const struct k_thread *thread) } LOG_INF("%p (%s):\tunused %zu\tusage %zu / %zu (%u %%)", - thread, tname, unused, size - unused, size, + thread, log_strdup(tname), unused, size - unused, size, pcnt); } #endif