diff --git a/kernel/src/arch/riscv/mem.rs b/kernel/src/arch/riscv/mem.rs index 23c67d75a..2a53140b9 100644 --- a/kernel/src/arch/riscv/mem.rs +++ b/kernel/src/arch/riscv/mem.rs @@ -507,12 +507,12 @@ pub fn lend_page_inner( } else { MMUFlags::NONE }; - println!("Clearing `W` bit from mapping of page {:08x}", phys); + print!(" [clearing `W` bit from mapping of page {:08x}]", phys); // If the current entry is writable, clear that bit and set the "P" flag *entry = (*entry & !(MMUFlags::W.bits())) | (previous_flag | MMUFlags::S).bits(); - println!( - "Additionally, mapping {:08x} into PID {:08x} @ {:08x}", + print!( + " [additionally, mapping {:08x} into PID {:08x} @ {:08x}]", phys, dest_pid, dest_addr as usize ); unsafe { flush_mmu() };