https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b705df731e98911c744bcd18311c2139583c3581

commit b705df731e98911c744bcd18311c2139583c3581
Author:     Victor Perevertkin <[email protected]>
AuthorDate: Fri Feb 5 11:54:10 2021 +0300
Commit:     Victor Perevertkin <[email protected]>
CommitDate: Fri Feb 5 11:54:10 2021 +0300

    [NTOS:MM][FASTFAT_NEW] Fix DBG usage, fixes Release build
---
 drivers/filesystems/fastfat_new/fatdata.c | 2 +-
 ntoskrnl/mm/rmap.c                        | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/filesystems/fastfat_new/fatdata.c 
b/drivers/filesystems/fastfat_new/fatdata.c
index 0c92389d98e..1a7ead0cb23 100644
--- a/drivers/filesystems/fastfat_new/fatdata.c
+++ b/drivers/filesystems/fastfat_new/fatdata.c
@@ -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();
diff --git a/ntoskrnl/mm/rmap.c b/ntoskrnl/mm/rmap.c
index cb3f956ef35..a2169eeb54f 100644
--- a/ntoskrnl/mm/rmap.c
+++ b/ntoskrnl/mm/rmap.c
@@ -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);
     }
 

Reply via email to