summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/task_create.c')
-rw-r--r--nuttx/sched/task_create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c
index c160cb52c..3db41bf5f 100644
--- a/nuttx/sched/task_create.c
+++ b/nuttx/sched/task_create.c
@@ -116,6 +116,7 @@ static int thread_create(const char *name, uint8_t ttype, int priority,
tcb = (FAR struct task_tcb_s *)kzalloc(sizeof(struct task_tcb_s));
if (!tcb)
{
+ sdbg("ERROR: Failed to allocate TCB\n");
errcode = ENOMEM;
goto errout;
}