mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTOS:CC] Improve trace messages
This commit is contained in:
+10
-8
@@ -138,8 +138,8 @@ CcRosTraceCacheMap (
|
||||
current = CONTAINING_RECORD(current_entry, ROS_VACB, CacheMapVacbListEntry);
|
||||
current_entry = current_entry->Flink;
|
||||
|
||||
DPRINT1(" VACB 0x%p enabled, RefCount %lu, Dirty %u, PageOut %lu\n",
|
||||
current, current->ReferenceCount, current->Dirty, current->PageOut );
|
||||
DPRINT1(" VACB 0x%p enabled, RefCount %lu, Dirty %u, PageOut %lu, BaseAddress %p, FileOffset %I64d\n",
|
||||
current, current->ReferenceCount, current->Dirty, current->PageOut, current->BaseAddress, current->FileOffset.QuadPart);
|
||||
}
|
||||
|
||||
KeReleaseSpinLockFromDpcLevel(&SharedCacheMap->CacheMapLock);
|
||||
@@ -595,12 +595,6 @@ CcRosCreateVacb (
|
||||
current->PageOut = FALSE;
|
||||
current->FileOffset.QuadPart = ROUND_DOWN(FileOffset, VACB_MAPPING_GRANULARITY);
|
||||
current->SharedCacheMap = SharedCacheMap;
|
||||
#if DBG
|
||||
if (SharedCacheMap->Trace)
|
||||
{
|
||||
DPRINT1("CacheMap 0x%p: new VACB: 0x%p\n", SharedCacheMap, current);
|
||||
}
|
||||
#endif
|
||||
current->MappedCount = 0;
|
||||
current->ReferenceCount = 0;
|
||||
InitializeListHead(¤t->CacheMapVacbListEntry);
|
||||
@@ -633,6 +627,14 @@ Retry:
|
||||
return Status;
|
||||
}
|
||||
|
||||
#if DBG
|
||||
if (SharedCacheMap->Trace)
|
||||
{
|
||||
DPRINT1("CacheMap 0x%p: new VACB: 0x%p, file offset %I64d, BaseAddress %p\n",
|
||||
SharedCacheMap, current, current->FileOffset.QuadPart, current->BaseAddress);
|
||||
}
|
||||
#endif
|
||||
|
||||
oldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock);
|
||||
|
||||
*Vacb = current;
|
||||
|
||||
Reference in New Issue
Block a user