diff options
Diffstat (limited to 'cpukit/score/src/objectallocate.c')
-rw-r--r-- | cpukit/score/src/objectallocate.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/score/src/objectallocate.c b/cpukit/score/src/objectallocate.c index 3a4e329ab6..ac98945a74 100644 --- a/cpukit/score/src/objectallocate.c +++ b/cpukit/score/src/objectallocate.c @@ -28,6 +28,12 @@ #include <rtems/score/sysstate.h> #include <rtems/score/isr.h> +/* #define RTEMS_DEBUG_OBJECT_ALLOCATION */ + +#if defined(RTEMS_DEBUG_OBJECT_ALLOCATION) +#include <rtems/bspIo.h> +#endif + /*PAGE * * _Objects_Allocate @@ -82,5 +88,15 @@ Objects_Control *_Objects_Allocate( } } +#if defined(RTEMS_DEBUG_OBJECT_ALLOCATION) + if ( !the_object ) { + printk( + "OBJECT ALLOCATION FAILURE! API/Class %d/%d\n", + information->the_api, + information->the_class + ); + } +#endif + return the_object; } |