From 41ffa0e5976e6dd4969e757097b8ed64a486ab35 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 26 Feb 2013 14:09:43 +0000 Subject: Add port to Zilogic Systems ZKIT-ARM-1769 board (more coming) git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5673 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/pthread_create.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nuttx/sched') diff --git a/nuttx/sched/pthread_create.c b/nuttx/sched/pthread_create.c index 57ef7696b..ce19941fc 100644 --- a/nuttx/sched/pthread_create.c +++ b/nuttx/sched/pthread_create.c @@ -247,6 +247,7 @@ int pthread_create(FAR pthread_t *thread, FAR pthread_attr_t *attr, ptcb = (FAR struct pthread_tcb_s *)kzalloc(sizeof(struct pthread_tcb_s)); if (!ptcb) { + sdbg("ERROR: Failed to allocate TCB\n"); return ENOMEM; } @@ -283,6 +284,7 @@ int pthread_create(FAR pthread_t *thread, FAR pthread_attr_t *attr, pjoin = (FAR struct join_s*)kzalloc(sizeof(struct join_s)); if (!pjoin) { + sdbg("ERROR: Failed to allocate join\n"); errcode = ENOMEM; goto errout_with_tcb; } -- cgit v1.2.3