add more info on allocate error

This commit is contained in:
mailwl 2025-07-09 00:50:22 +03:00
parent 3f92436a55
commit e565f998ba

View file

@ -214,7 +214,10 @@ PAddr MemoryManager::Allocate(PAddr search_start, PAddr search_end, u64 size, u6
if (dmem_area == dmem_map.end()) { if (dmem_area == dmem_map.end()) {
// There are no suitable mappings in this range // 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; return -1;
} }