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:
parent
ebcb6a5e71
commit
547d623c37
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue