mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
sched/init/nx_start.c: fix compile break when CONIFG_TASK_NAME_SIZE=0
This commit is contained in:
committed by
Abdelatif Guettouche
parent
b1d051b651
commit
e2c9f612c9
@@ -806,8 +806,12 @@ void nx_start(void)
|
|||||||
if (tcb && (up_check_tcbstack(tcb) * 100 / tcb->adj_stack_size
|
if (tcb && (up_check_tcbstack(tcb) * 100 / tcb->adj_stack_size
|
||||||
> CONFIG_STACK_USAGE_SAFE_PERCENT))
|
> CONFIG_STACK_USAGE_SAFE_PERCENT))
|
||||||
{
|
{
|
||||||
|
#if CONFIG_TASK_NAME_SIZE > 0
|
||||||
_alert("Stack check failed, pid %d, name %s\n",
|
_alert("Stack check failed, pid %d, name %s\n",
|
||||||
tcb->pid, tcb->name);
|
tcb->pid, tcb->name);
|
||||||
|
#else
|
||||||
|
_alert("Stack check failed, pid %d\n", tcb->pid);
|
||||||
|
#endif
|
||||||
PANIC();
|
PANIC();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user