https://git.reactos.org/?p=reactos.git;a=commitdiff;h=804f5a41edd0af35e881e…
commit 804f5a41edd0af35e881ea69a1595220587777c3
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Tue Jan 5 12:32:09 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 09:41:23 2021 +0100
[NTOS:CC] Improve trace messages
---
ntoskrnl/cc/view.c | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 2aeb9df5b3b..dab292bd273 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -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;