You know you're doing something right when Clang complains.
This commit is contained in:
Stephen Miller 2025-05-15 12:55:49 -05:00 committed by GitHub
parent 1d319ee51f
commit dc25dd6835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -386,8 +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, "Unable to map {:#x} bytes at address {:#x}", size,
mapped_addr);
LOG_ERROR(Kernel_Vmm, "Unable to map {:#x} bytes at address {:#x}", size, mapped_addr);
return ORBIS_KERNEL_ERROR_ENOMEM;
}
}