From c42807e3dcf3b461af608f381ac7a82695aec29a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 14 Jul 2021 01:32:33 +0200 Subject: [PATCH] Kernel: Remove debug spam when PhysicalRegion::take_free_page() fails We can have multiple PhysicalRegions (often the case when there is a huge amount of RAM) so we really shouldn't print a debug message any time someone tries to allocate from one. They will move on to another region anyway. --- Kernel/VM/PhysicalRegion.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Kernel/VM/PhysicalRegion.cpp b/Kernel/VM/PhysicalRegion.cpp index 3560186fd8..42b5c7022b 100644 --- a/Kernel/VM/PhysicalRegion.cpp +++ b/Kernel/VM/PhysicalRegion.cpp @@ -105,10 +105,8 @@ NonnullRefPtrVector PhysicalRegion::take_contiguous_free_pages(siz RefPtr PhysicalRegion::take_free_page() { - if (m_usable_zones.is_empty()) { - dbgln("PhysicalRegion::take_free_page: No free physical pages"); + if (m_usable_zones.is_empty()) return nullptr; - } auto& zone = *m_usable_zones.first(); auto page = zone.allocate_block(0);