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 <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2020-02-11 07:54:16 +01:00 committed by Andrew Boie
commit 547d623c37

View file

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