From a83d641d2cb0f6b4818eedb375f017262ddab1e9 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 28 Oct 2021 07:48:25 +0900 Subject: [PATCH] mmu: Be more clear about what's happening when we run out of RAM --- kernel/arch/x86_64/mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/arch/x86_64/mmu.c b/kernel/arch/x86_64/mmu.c index 97f0902f..f6d54eb8 100644 --- a/kernel/arch/x86_64/mmu.c +++ b/kernel/arch/x86_64/mmu.c @@ -113,7 +113,7 @@ uintptr_t mmu_first_n_frames(int n) { } arch_fatal_prepare(); - printf("failed to allocate %d contiguous frames\n", n); + dprintf("Failed to allocate %d contiguous frames.\n", n); arch_dump_traceback(); arch_fatal(); return (uintptr_t)-1; @@ -138,7 +138,7 @@ uintptr_t mmu_first_frame(void) { } arch_fatal_prepare(); - printf("error: out allocatable frames\n"); + dprintf("Out of memory.\n"); arch_dump_traceback(); arch_fatal(); return (uintptr_t)-1;