Changeset 116e83c4 in rtems


Ignore:
Timestamp:
Jun 16, 2010, 5:35:25 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
c5500f2
Parents:
8e843a1
Message:

2010-06-16 Joel Sherrill <joel.sherrill@…>

  • score/src/objectallocate.c: Add conditionally compiled debug code to printk a message when an object allocation error occurs. This should be helpful in identifying when a ported package required more resources.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r8e843a1 r116e83c4  
     12010-06-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * score/src/objectallocate.c: Add conditionally compiled debug code to
     4        printk a message when an object allocation error occurs. This should
     5        be helpful in identifying when a ported package required more
     6        resources.
     7
    182010-06-16      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • cpukit/score/src/objectallocate.c

    r8e843a1 r116e83c4  
    2828#include <rtems/score/sysstate.h>
    2929#include <rtems/score/isr.h>
     30
     31/* #define RTEMS_DEBUG_OBJECT_ALLOCATION */
     32
     33#if defined(RTEMS_DEBUG_OBJECT_ALLOCATION)
     34#include <rtems/bspIo.h>
     35#endif
    3036
    3137/*PAGE
     
    8389  }
    8490
     91#if defined(RTEMS_DEBUG_OBJECT_ALLOCATION)
     92  if ( !the_object ) {
     93    printk(
     94      "OBJECT ALLOCATION FAILURE! API/Class %d/%d\n",
     95      information->the_api,
     96      information->the_class
     97    );
     98  }
     99#endif
     100
    85101  return the_object;
    86102}
Note: See TracChangeset for help on using the changeset viewer.