summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-26 14:09:43 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-26 14:09:43 +0000
commit41ffa0e5976e6dd4969e757097b8ed64a486ab35 (patch)
tree0c042bf3c73f50b5f3bbc9f40243989d3aba770e /nuttx/sched
parent16b331cdc8d014264d17099f7034e45fca0bd7a8 (diff)
downloadpx4-nuttx-41ffa0e5976e6dd4969e757097b8ed64a486ab35.tar.gz
px4-nuttx-41ffa0e5976e6dd4969e757097b8ed64a486ab35.tar.bz2
px4-nuttx-41ffa0e5976e6dd4969e757097b8ed64a486ab35.zip
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
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/pthread_create.c2
1 files changed, 2 insertions, 0 deletions
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;
}