From 35b8b158578a9b5b76a2ff6e8ca4e25e7b48fde7 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 19:00:25 +0000 Subject: [PATCH] Added FUNCTION_EXIT macro date 99.05.19.22.13.00; author rmoore1; state Exp; --- source/components/utilities/utalloc.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/source/components/utilities/utalloc.c b/source/components/utilities/utalloc.c index db569d1ea..a0c3c653e 100644 --- a/source/components/utilities/utalloc.c +++ b/source/components/utilities/utalloc.c @@ -138,7 +138,7 @@ _AllocateObjectDesc (char *ModuleName, INT32 LineNumber, INT32 ComponentId, /* Attempt to allocate new descriptor */ - NewDesc = NEW (OBJECT_DESCRIPTOR); + NewDesc = OsdCallocate (sizeof (OBJECT_DESCRIPTOR)); if (!NewDesc) { /* Allocation failed */ @@ -146,6 +146,12 @@ _AllocateObjectDesc (char *ModuleName, INT32 LineNumber, INT32 ComponentId, _REPORT_ERROR (ModuleName, LineNumber, ComponentId, KdtEntry); } + else + { + DEBUG_PRINT (TRACE_ALLOCATIONS, ("AllocateObjectDesc: %x Size 0x%x\n", + NewDesc, sizeof (OBJECT_DESCRIPTOR))); + } + return NewDesc; } @@ -180,6 +186,12 @@ _LocalAllocate (char *ModuleName, INT32 LineNumber, INT32 ComponentId, INT32 All _REPORT_ERROR (ModuleName, LineNumber, ComponentId, &KDT[0]); } + else + { + DEBUG_PRINT (TRACE_ALLOCATIONS, ("LocalAllocate: %x Size 0x%x\n", + Block, AllocSize)); + } + return Block; } @@ -214,6 +226,12 @@ _LocalCallocate (char *ModuleName, INT32 LineNumber, INT32 ComponentId, INT32 Al _REPORT_ERROR (ModuleName, LineNumber, ComponentId, &KDT[1]); } + else + { + DEBUG_PRINT (TRACE_ALLOCATIONS, ("LocalCallocate: %x Size 0x%x\n", + Block, AllocSize)); + } + return Block; }