summaryrefslogtreecommitdiff
path: root/nuttx/arch/sim
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-28 15:31:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-28 15:31:58 +0000
commit8bf2bd9ff858b953091e9c06fd573e02dcfefe5a (patch)
tree617198360881b74f55be80d10213f03cdf23dbfa /nuttx/arch/sim
parentf6b940c07fd543138ca4b856731fcf774edebeed (diff)
downloadpx4-nuttx-8bf2bd9ff858b953091e9c06fd573e02dcfefe5a.tar.gz
px4-nuttx-8bf2bd9ff858b953091e9c06fd573e02dcfefe5a.tar.bz2
px4-nuttx-8bf2bd9ff858b953091e9c06fd573e02dcfefe5a.zip
Add debug output when memory allocations fail
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5686 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sim')
-rw-r--r--nuttx/arch/sim/src/up_createstack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/sim/src/up_createstack.c b/nuttx/arch/sim/src/up_createstack.c
index 268a9ba46..fb7e80081 100644
--- a/nuttx/arch/sim/src/up_createstack.c
+++ b/nuttx/arch/sim/src/up_createstack.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/sim/src/up_createstack.c
*
- * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -110,5 +110,6 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size)
tcb->adj_stack_ptr = adj_stack_ptr;
ret = OK;
}
+
return ret;
}