From 8bf2bd9ff858b953091e9c06fd573e02dcfefe5a Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 28 Feb 2013 15:31:58 +0000 Subject: 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 --- nuttx/arch/sim/src/up_createstack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nuttx/arch/sim') 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 * * 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; } -- cgit v1.2.3