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); }