Common_3/ThirdParty/OpenSource/FluidStudios/MemoryManager/mmgr.c
void mmgrDumpAllocUnit(const sAllocUnit* allocUnit, const char* prefix)
{
	Log("[I] %sAddress (reported): %010p", prefix, allocUnit->reportedAddress);
	Log("[I] %sAddress (actual)  : %010p", prefix, allocUnit->actualAddress);
	Log("[I] %sSize (reported)   : 0x%08X (%s)", prefix, (unsigned int)(allocUnit->reportedSize),
		memorySizeString((unsigned int)(allocUnit->reportedSize)));
	Log("[I] %sSize (actual)     : 0x%08X (%s)", prefix, (unsigned int)(allocUnit->actualSize),
		memorySizeString((unsigned int)(allocUnit->actualSize)));
	Log("[I] %sOwner             : %s(%d)::%s", prefix, allocUnit->sourceFile, allocUnit->sourceLine, allocUnit->sourceFunc);
	Log("[I] %sAllocation type   : %s", prefix, allocationTypes[allocUnit->allocationType]);
	Log("[I] %sAllocation number : %d", prefix, allocUnit->allocationNumber);
}
// ---------------------------------------------------------------------------------------------------------------------------------
// -DOC- The following functions are for logging and statistics reporting.
// ---------------------------------------------------------------------------------------------------------------------------------
DOC- The following functions are for logging and statistics reporting.
DOC - The following functions are for logging and statistics reporting .
void mmgrDumpAllocUnit(const sAllocUnit* allocUnit, const char* prefix)
{
	Log("[I] %sAddress (reported): %010p", prefix, allocUnit->reportedAddress);
	Log("[I] %sAddress (actual)  : %010p", prefix, allocUnit->actualAddress);
	Log("[I] %sSize (reported)   : 0x%08X (%s)", prefix, (unsigned int)(allocUnit->reportedSize),
		memorySizeString((unsigned int)(allocUnit->reportedSize)));
	Log("[I] %sSize (actual)     : 0x%08X (%s)", prefix, (unsigned int)(allocUnit->actualSize),
		memorySizeString((unsigned int)(allocUnit->actualSize)));
	Log("[I] %sOwner             : %s(%d)::%s", prefix, allocUnit->sourceFile, allocUnit->sourceLine, allocUnit->sourceFunc);
	Log("[I] %sAllocation type   : %s", prefix, allocationTypes[allocUnit->allocationType]);
	Log("[I] %sAllocation number : %d", prefix, allocUnit->allocationNumber);
}
void mmgrDumpAllocUnit ( const sAllocUnit * allocUnit , const char * prefix ) { Log ( " " , prefix , allocUnit -> reportedAddress ) ; Log ( " " , prefix , allocUnit -> actualAddress ) ; Log ( " " , prefix , ( unsigned int ) ( allocUnit -> reportedSize ) , memorySizeString ( ( unsigned int ) ( allocUnit -> reportedSize ) ) ) ; Log ( " " , prefix , ( unsigned int ) ( allocUnit -> actualSize ) , memorySizeString ( ( unsigned int ) ( allocUnit -> actualSize ) ) ) ; Log ( " " , prefix , allocUnit -> sourceFile , allocUnit -> sourceLine , allocUnit -> sourceFunc ) ; Log ( " " , prefix , allocationTypes [ allocUnit -> allocationType ] ) ; Log ( " " , prefix , allocUnit -> allocationNumber ) ; }
DOC- The following functions are for logging and statistics reporting.
DOC - The following functions are for logging and statistics reporting .