diff --git a/src/system/kernel/arch/x86/arch_vm.cpp b/src/system/kernel/arch/x86/arch_vm.cpp index ecc1e6cec4..821f1088a6 100644 --- a/src/system/kernel/arch/x86/arch_vm.cpp +++ b/src/system/kernel/arch/x86/arch_vm.cpp @@ -121,8 +121,10 @@ static bool add_used_mtrr(uint64 base, uint64 size, uint32 type) { if (sMemoryTypeRegistersUsed == sMemoryTypeRegisterCount) { - dprintf("add_used_mtrr(%#" B_PRIx64 ", %#" B_PRIx64 ", %" B_PRIu32 - "): out of MTRRs!\n", base, size, type); + if (sMemoryTypeRegisterCount > 0) { + dprintf("add_used_mtrr(%#" B_PRIx64 ", %#" B_PRIx64 ", %" B_PRIu32 + "): out of MTRRs!\n", base, size, type); + } return false; }