kernel: Fix k_thread_name_get signature
k_thread_name_get has inconsistent signature. In the function declaration it uses k_tid_t but in the implementation it is using struct k_thread *. Change the implementation to use k_tid_t. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
7db93097da
commit
6e02f02464
|
@ -278,7 +278,7 @@ static inline int z_vrfy_k_thread_name_set(struct k_thread *thread, const char *
|
|||
#include <syscalls/k_thread_name_set_mrsh.c>
|
||||
#endif /* CONFIG_USERSPACE */
|
||||
|
||||
const char *k_thread_name_get(struct k_thread *thread)
|
||||
const char *k_thread_name_get(k_tid_t thread)
|
||||
{
|
||||
#ifdef CONFIG_THREAD_NAME
|
||||
return (const char *)thread->name;
|
||||
|
|
Loading…
Reference in a new issue