From 1d319ee51ff0f9a0b64b8c5880184c871e84c9f8 Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Thu, 15 May 2025 12:54:10 -0500 Subject: [PATCH] Change error message If I left the message as-is, we'd probably see inexperienced people claiming the assert means your device needs more memory, which is completely false. --- src/core/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index df72bc538..5cde2a0af 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -386,7 +386,7 @@ int MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, size_t size, M vma = FindVMA(mapped_addr)->second; remaining_size = vma.base + vma.size - mapped_addr; if (vma.IsMapped() || remaining_size < size) { - LOG_ERROR(Kernel_Vmm, "Not enough memory to map {:#x} bytes at address {:#x}", size, + LOG_ERROR(Kernel_Vmm, "Unable to map {:#x} bytes at address {:#x}", size, mapped_addr); return ORBIS_KERNEL_ERROR_ENOMEM; }