From e565f998ba24ebf048000901eaa45a12ab6a7240 Mon Sep 17 00:00:00 2001 From: mailwl Date: Wed, 9 Jul 2025 00:50:22 +0300 Subject: [PATCH] add more info on allocate error --- src/core/memory.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 3d9bf58a7..dc55373d5 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -214,7 +214,10 @@ PAddr MemoryManager::Allocate(PAddr search_start, PAddr search_end, u64 size, u6 if (dmem_area == dmem_map.end()) { // There are no suitable mappings in this range - LOG_ERROR(Kernel_Vmm, "Unable to find free direct memory area: size = {:#x}", size); + auto exceed = mapping_end - search_end; + LOG_ERROR(Kernel_Vmm, + "Unable to find free direct memory area: size = {:#x}, exceed = {:#x}", size, + exceed); return -1; }