forked from Imagelibrary/rtems
2010-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2010-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libfs/src/rfs/rtems-rfs-inode.c: Various 64bit fixes.
|
* libfs/src/rfs/rtems-rfs-inode.c: Various 64bit fixes.
|
||||||
|
|||||||
@@ -28,6 +28,12 @@
|
|||||||
#include <rtems/score/sysstate.h>
|
#include <rtems/score/sysstate.h>
|
||||||
#include <rtems/score/isr.h>
|
#include <rtems/score/isr.h>
|
||||||
|
|
||||||
|
/* #define RTEMS_DEBUG_OBJECT_ALLOCATION */
|
||||||
|
|
||||||
|
#if defined(RTEMS_DEBUG_OBJECT_ALLOCATION)
|
||||||
|
#include <rtems/bspIo.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*PAGE
|
/*PAGE
|
||||||
*
|
*
|
||||||
* _Objects_Allocate
|
* _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;
|
return the_object;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user