1
0
Fork 0
forked from nuttx/nuttx-update

note_sysview.c: fix compilation for CONFIG_TASK_NAME_SIZE == 0

This commit is contained in:
raiden00pl 2022-04-02 13:38:49 +02:00 committed by Xiang Xiao
parent 7403678db7
commit a984de6098

View file

@ -83,7 +83,11 @@ static void sysview_send_taskinfo(FAR struct tcb_s *tcb)
SEGGER_SYSVIEW_TASKINFO info;
info.TaskID = tcb->pid;
#if CONFIG_TASK_NAME_SIZE > 0
info.sName = tcb->name;
#else
info.sName = "<noname>";
#endif
info.Prio = tcb->sched_priority;
info.StackBase = (uintptr_t)tcb->stack_base_ptr;
info.StackSize = tcb->adj_stack_size;