From f020081a3842d05df5574fdb93de03ab895a7414 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 22 Feb 2020 07:29:23 +0100 Subject: [PATCH] Kernel: Put "Couldn't find user region" spam behind MM_DEBUG This basically never tells us anything actionable anyway, and it's a real annoyance when doing something validation-heavy like profiling. --- Kernel/VM/MemoryManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index 58f24a7cbc..d593e4a3c7 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -263,7 +263,9 @@ Region* MemoryManager::user_region_from_vaddr(Process& process, VirtualAddress v if (region.contains(vaddr)) return ®ion; } +#ifdef MM_DEBUG dbg() << process << " Couldn't find user region for " << vaddr; +#endif return nullptr; }