kernel: remove debugging prints for memory allocation

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-09-27 19:38:15 +08:00
parent 62216b7295
commit 956d5f0866
2 changed files with 9 additions and 9 deletions

View file

@ -455,10 +455,10 @@ impl MemoryManager {
if is_user {
crate::arch::mem::hand_page_to_user(virt as _)?;
}
println!(
"Mapped {:08x} -> {:08x} (user? {})",
phys as usize, virt as usize, is_user
);
// println!(
// "Mapped {:08x} -> {:08x} (user? {})",
// phys as usize, virt as usize, is_user
// );
Ok(virt)
}

View file

@ -664,11 +664,11 @@ pub fn handle_inner(pid: PID, tid: TID, in_irq: bool, call: SysCall) -> SysCallR
// don't need to do this.
if phys.is_some() {
if mm.is_main_memory(phys_ptr) {
println!(
"Going to zero out {} bytes @ {:08x}",
range.len(),
range.as_ptr() as usize,
);
// println!(
// "Going to zero out {} bytes @ {:08x}",
// range.len(),
// range.as_ptr() as usize,
// );
unsafe {
range
.as_mut_ptr()