- Turn off a bit more debugging so NewCC is largely quiet unless there's a problem

svn path=/trunk/; revision=56015
This commit is contained in:
Cameron Gutman 2012-03-04 21:36:34 +00:00
parent 28a5fcc313
commit 4350714766
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@
#include <ntoskrnl.h> #include <ntoskrnl.h>
#include "newcc.h" #include "newcc.h"
#include "section/newmm.h" #include "section/newmm.h"
//#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
/* STRUCTURES *****************************************************************/ /* STRUCTURES *****************************************************************/
@ -50,7 +50,7 @@ CcpReadAhead(PVOID Context)
LARGE_INTEGER Offset; LARGE_INTEGER Offset;
PWORK_QUEUE_WITH_READ_AHEAD WorkItem = (PWORK_QUEUE_WITH_READ_AHEAD)Context; PWORK_QUEUE_WITH_READ_AHEAD WorkItem = (PWORK_QUEUE_WITH_READ_AHEAD)Context;
PNOCC_CACHE_MAP Map = (PNOCC_CACHE_MAP)WorkItem->FileObject->SectionObjectPointer->SharedCacheMap; 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.HighPart,
WorkItem->FileOffset.LowPart, WorkItem->FileOffset.LowPart,
WorkItem->Length, WorkItem->Length,

View file

@ -12,7 +12,7 @@
#include <ntoskrnl.h> #include <ntoskrnl.h>
#include "newcc.h" #include "newcc.h"
#include "section/newmm.h" #include "section/newmm.h"
//#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
/* GLOBALS ********************************************************************/ /* GLOBALS ********************************************************************/
@ -59,7 +59,7 @@ CcInitializeCacheManager(VOID)
CcCacheBitmap->Buffer = ((PULONG)&CcCacheBitmap[1]); CcCacheBitmap->Buffer = ((PULONG)&CcCacheBitmap[1]);
CcCacheBitmap->SizeOfBitMap = ROUND_UP(CACHE_NUM_SECTIONS, 32); 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); ExInitializeFastMutex(&CcMutex);
return TRUE; return TRUE;