mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/wkspace.c: Improve debug output.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user