[NTOS:MM][FASTFAT_NEW] Fix DBG usage, fixes Release build
authorVictor Perevertkin <victor.perevertkin@reactos.org>
Fri, 5 Feb 2021 08:54:10 +0000 (11:54 +0300)
committerVictor Perevertkin <victor.perevertkin@reactos.org>
Fri, 5 Feb 2021 08:54:10 +0000 (11:54 +0300)
drivers/filesystems/fastfat_new/fatdata.c
ntoskrnl/mm/rmap.c

index 0c92389..1a7ead0 100644 (file)
@@ -233,7 +233,7 @@ Return Value:
     DebugTrace(0, DEBUG_TRACE_UNWIND, "FatExceptionFilter %X\n", ExceptionCode);
     DebugDump("FatExceptionFilter\n", Dbg, NULL );
 
-#ifdef DBG
+#if DBG
 
     if( FatBreakOnInterestingExceptionStatus != 0 && ExceptionCode == FatBreakOnInterestingExceptionStatus ) {
         DbgBreakPoint();
index cb3f956..a2169ee 100644 (file)
@@ -406,9 +406,11 @@ MmInsertRmap(PFN_NUMBER Page, PEPROCESS Process,
 
     if (current_entry && (current_entry->Address == Address) && (current_entry->Process == Process))
     {
+#if DBG
         DbgPrint("MmInsertRmap tries to add a second rmap entry for address %p\n", current_entry->Address);
         DbgPrint("    current caller  %p\n", new_entry->Caller);
         DbgPrint("    previous caller %p\n", current_entry->Caller);
+#endif
         KeBugCheck(MEMORY_MANAGEMENT);
     }