[ros-diffs] [cgutman] 56015: [NEWCC] - Turn off a bit more debugging so NewCC is largely quiet unless there's a problem

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Mar 4 21:36:34 UTC 2012


Author: cgutman
Date: Sun Mar  4 21:36:34 2012
New Revision: 56015

URL: http://svn.reactos.org/svn/reactos?rev=56015&view=rev
Log:
[NEWCC]
- Turn off a bit more debugging so NewCC is largely quiet unless there's a problem

Modified:
    trunk/reactos/ntoskrnl/cache/cachesub.c
    trunk/reactos/ntoskrnl/cache/fssup.c

Modified: trunk/reactos/ntoskrnl/cache/cachesub.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cache/cachesub.c?rev=56015&r1=56014&r2=56015&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/cache/cachesub.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cache/cachesub.c [iso-8859-1] Sun Mar  4 21:36:34 2012
@@ -12,7 +12,7 @@
 #include <ntoskrnl.h>
 #include "newcc.h"
 #include "section/newmm.h"
-//#define NDEBUG
+#define NDEBUG
 #include <debug.h>
 
 /* STRUCTURES *****************************************************************/
@@ -50,7 +50,7 @@
 	LARGE_INTEGER Offset;
 	PWORK_QUEUE_WITH_READ_AHEAD WorkItem = (PWORK_QUEUE_WITH_READ_AHEAD)Context;
 	PNOCC_CACHE_MAP Map = (PNOCC_CACHE_MAP)WorkItem->FileObject->SectionObjectPointer->SharedCacheMap;
-	DPRINT("Reading ahead %08x%08x:%x %wZ\n",
+	DPRINT1("Reading ahead %08x%08x:%x %wZ\n",
 		   WorkItem->FileOffset.HighPart,
 		   WorkItem->FileOffset.LowPart,
 		   WorkItem->Length,

Modified: trunk/reactos/ntoskrnl/cache/fssup.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cache/fssup.c?rev=56015&r1=56014&r2=56015&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/cache/fssup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cache/fssup.c [iso-8859-1] Sun Mar  4 21:36:34 2012
@@ -12,7 +12,7 @@
 #include <ntoskrnl.h>
 #include "newcc.h"
 #include "section/newmm.h"
-//#define NDEBUG
+#define NDEBUG
 #include <debug.h>
 
 /* GLOBALS ********************************************************************/
@@ -59,7 +59,7 @@
 
 	CcCacheBitmap->Buffer = ((PULONG)&CcCacheBitmap[1]);
 	CcCacheBitmap->SizeOfBitMap = ROUND_UP(CACHE_NUM_SECTIONS, 32);
-	DPRINT("Cache has %d entries\n", CcCacheBitmap->SizeOfBitMap);
+	DPRINT1("Cache has %d entries\n", CcCacheBitmap->SizeOfBitMap);
 	ExInitializeFastMutex(&CcMutex);
 
     return TRUE;




More information about the Ros-diffs mailing list