Changeset a2fa532d in rtems


Ignore:
Timestamp:
Aug 5, 2009, 3:35:02 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
74f4eda
Parents:
b6f8f03
Message:

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

  • score/src/wkspace.c: Improve debug output.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rb6f8f03 ra2fa532d  
     12009-08-05      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/src/wkspace.c: Improve debug output.
     4
    152009-08-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • cpukit/score/src/wkspace.c

    rb6f8f03 ra2fa532d  
    7373)
    7474{
    75   void *p;
     75  void *memory;
    7676
    77   p = _Heap_Allocate( &_Workspace_Area, size );
     77  memory = _Heap_Allocate( &_Workspace_Area, size );
    7878  #if defined(DEBUG_WORKSPACE)
    7979    printk(
     
    8282      __builtin_return_address( 0 ),
    8383      __builtin_return_address( 1 ),
    84       p
     84      memory
    8585    );
    8686  #endif
    87   return p;
     87  return memory;
    8888}
    8989
     
    113113)
    114114{
    115   void        *memory;
     115  void *memory;
    116116
    117   memory = _Workspace_Allocate( size );
     117  memory = _Heap_Allocate( &_Workspace_Area, size );
     118  #if defined(DEBUG_WORKSPACE)
     119    printk(
     120      "Workspace_Allocate_or_fatal_error(%d) from %p/%p -> %p\n",
     121      size,
     122      __builtin_return_address( 0 ),
     123      __builtin_return_address( 1 ),
     124      memory
     125    );
     126  #endif
    118127
    119128  if ( memory == NULL )
Note: See TracChangeset for help on using the changeset viewer.