forked from nuttx/nuttx-update
note_sysview.c: fix compilation for CONFIG_TASK_NAME_SIZE == 0
This commit is contained in:
parent
7403678db7
commit
a984de6098
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue