From e2c9f612c99ac9621c9850f7bfd37ffcbd500e8a Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Thu, 16 Dec 2021 14:14:39 +0100 Subject: [PATCH] sched/init/nx_start.c: fix compile break when CONIFG_TASK_NAME_SIZE=0 --- sched/init/nx_start.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sched/init/nx_start.c b/sched/init/nx_start.c index 394690c5cd..a50bd3deec 100644 --- a/sched/init/nx_start.c +++ b/sched/init/nx_start.c @@ -806,8 +806,12 @@ void nx_start(void) if (tcb && (up_check_tcbstack(tcb) * 100 / tcb->adj_stack_size > CONFIG_STACK_USAGE_SAFE_PERCENT)) { +#if CONFIG_TASK_NAME_SIZE > 0 _alert("Stack check failed, pid %d, name %s\n", tcb->pid, tcb->name); +#else + _alert("Stack check failed, pid %d\n", tcb->pid); +#endif PANIC(); }