[NTOSKRNL:MM]

- More effective debugging
CORE-6929

svn path=/trunk/; revision=58258
This commit is contained in:
Thomas Faber 2013-02-01 09:39:54 +00:00
parent 16bc7253b9
commit cdb9b56484
2 changed files with 13 additions and 3 deletions

View file

@ -572,8 +572,8 @@ ExpRemovePoolTracker(IN ULONG Key,
//
if (!TableEntry->Key)
{
DPRINT1("Empty item reached in tracker table. Tag=0x%08lx, NumberOfBytes=%lu, PoolType=%d\n",
Key, (ULONG)NumberOfBytes, PoolType);
DPRINT1("Empty item reached in tracker table. Hash=0x%lx, TableMask=0x%lx, Tag=0x%08lx, NumberOfBytes=%lu, PoolType=%d\n",
Hash, TableMask, Key, (ULONG)NumberOfBytes, PoolType);
ASSERT(Hash == TableMask);
}

View file

@ -27,6 +27,16 @@ FAST_MUTEX RmapListLock;
/* FUNCTIONS ****************************************************************/
_IRQL_requires_max_(DISPATCH_LEVEL)
static
VOID
NTAPI
RmapListFree(
_In_ __drv_freesMem(Mem) PVOID P)
{
ExFreePoolWithTag(P, TAG_RMAP);
}
VOID
INIT_FUNCTION
NTAPI
@ -35,7 +45,7 @@ MmInitializeRmapList(VOID)
ExInitializeFastMutex(&RmapListLock);
ExInitializeNPagedLookasideList (&RmapLookasideList,
NULL,
NULL,
RmapListFree,
0,
sizeof(MM_RMAP_ENTRY),
TAG_RMAP,