Added FUNCTION_EXIT macro

date	99.05.19.22.13.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 19:00:25 +00:00
parent 529f7414f4
commit 35b8b15857

View File

@ -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;
}