Changeset e63b79d in rtems


Ignore:
Timestamp:
Jul 30, 2009, 12:11:44 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
cedfd802
Parents:
0376d08
Message:

2009-07-29 Joel Sherrill <joel.sherrill@…>

  • score/src/wkspace.c: Add debug printks.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r0376d08 re63b79d  
     12009-07-29      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * score/src/wkspace.c: Add debug printks.
     4
    152009-07-29      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • cpukit/score/src/wkspace.c

    r0376d08 re63b79d  
    22 *  Workspace Handler
    33 *
    4  *  COPYRIGHT (c) 1989-2008.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    2323
    2424#include <string.h>  /* for memset */
     25
     26/* #define DEBUG_WORKSPACE */
     27#if defined(DEBUG_WORKSPACE)
     28  #include <rtems/bspIo.h>
     29#endif
    2530
    2631/*
     
    6873)
    6974{
    70    return _Heap_Allocate( &_Workspace_Area, size );
     75  void *p;
     76
     77  p = _Heap_Allocate( &_Workspace_Area, size );
     78  #if defined(DEBUG_WORKSPACE)
     79    printk(
     80      "Workspace_Allocate(%d) from %p/%p -> %p\n",
     81      size,
     82      __builtin_return_address( 0 ),
     83      __builtin_return_address( 1 ),
     84      p
     85    );
     86  #endif
     87  return p;
    7188}
    7289
     
    7895)
    7996{
     97  #if defined(DEBUG_WORKSPACE)
     98    printk(
     99      "Workspace_Free(%p) from %p/%p\n",
     100      block,
     101      __builtin_return_address( 0 ),
     102      __builtin_return_address( 1 )
     103    );
     104  #endif
    80105   return _Heap_Free( &_Workspace_Area, block );
    81106}
Note: See TracChangeset for help on using the changeset viewer.