From 547d623c3769e2278888d9fe630d7649c6ecb605 Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Tue, 11 Feb 2020 07:54:16 +0100 Subject: [PATCH] debug: stack: Add missing log_strdup Log call was missing log_strdup wrap around thread name which is a string in RAM. Signed-off-by: Krzysztof Chruscinski --- include/debug/stack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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