diff options
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/task_create.c | 1 | ||||
-rw-r--r-- | nuttx/sched/task_vfork.c | 1 |
2 files changed, 2 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; } diff --git a/nuttx/sched/task_vfork.c b/nuttx/sched/task_vfork.c index 58b4152ed..1f365e916 100644 --- a/nuttx/sched/task_vfork.c +++ b/nuttx/sched/task_vfork.c @@ -122,6 +122,7 @@ FAR struct task_tcb_s *task_vforksetup(start_t retaddr) child = (FAR struct task_tcb_s *)kzalloc(sizeof(struct task_tcb_s)); if (!child) { + sdbg("ERROR: Failed to allocate TCB\n"); set_errno(ENOMEM); return NULL; } |