2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>

* score/src/wkspace.c: Improve debug output.
This commit is contained in:
Joel Sherrill
2009-08-05 15:35:02 +00:00
parent b6f8f03e62
commit a2fa532d7b
2 changed files with 19 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/wkspace.c: Improve debug output.
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/include/rtems/posix/config.h, posix/src/mqueue.c,

View File

@@ -72,19 +72,19 @@ void *_Workspace_Allocate(
size_t size
)
{
void *p;
void *memory;
p = _Heap_Allocate( &_Workspace_Area, size );
memory = _Heap_Allocate( &_Workspace_Area, size );
#if defined(DEBUG_WORKSPACE)
printk(
"Workspace_Allocate(%d) from %p/%p -> %p\n",
size,
__builtin_return_address( 0 ),
__builtin_return_address( 1 ),
p
memory
);
#endif
return p;
return memory;
}
/*
@@ -114,7 +114,16 @@ void *_Workspace_Allocate_or_fatal_error(
{
void *memory;
memory = _Workspace_Allocate( size );
memory = _Heap_Allocate( &_Workspace_Area, size );
#if defined(DEBUG_WORKSPACE)
printk(
"Workspace_Allocate_or_fatal_error(%d) from %p/%p -> %p\n",
size,
__builtin_return_address( 0 ),
__builtin_return_address( 1 ),
memory
);
#endif
if ( memory == NULL )
_Internal_error_Occurred(