kernel: mem: match riscv printf with rest of formatting

We don't use `println` anymore, we use `print`.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-11-11 16:03:52 +08:00
parent aee42bf264
commit 7156ab5e79

View file

@ -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() };