Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit 0fcdf4d

Browse files
committed
Reduce print statements
1 parent e1b445d commit 0fcdf4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/src/memory/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ impl KernelAllocator {
469469
}
470470

471471
if base_page_iter.len() > 0 {
472-
log::error!(
472+
log::debug!(
473473
"Losing {:?} base pages of shared memory. Oh well.",
474474
base_page_iter.len()
475475
);
@@ -639,10 +639,10 @@ unsafe impl GlobalAlloc for KernelAllocator {
639639
if is_shmem_addr(ptr as u64, false, false) {
640640
panic!("Should not be trying to dealloc non-kernel mapped shmem in kernel dealloc");
641641
} else if is_shmem_affinity(affinity) && !is_shmem_addr_with_affinity(ptr as u64, affinity, true) {
642-
log::error!("Trying to deallocate memory not in shmem affinity into shmem allocator - losing this memory. Oh well.");
642+
log::debug!("Trying to deallocate memory not in shmem affinity into shmem allocator - losing this memory. Oh well.");
643643
return;
644644
} else if !is_shmem_affinity(affinity) && is_shmem_addr(ptr as u64, false, true) {
645-
log::error!("Trying to deallocate shmem into non-shmem allocator - losing this memory. Oh well.");
645+
log::debug!("Trying to deallocate shmem into non-shmem allocator - losing this memory. Oh well.");
646646
return;
647647
}
648648
}
@@ -717,7 +717,7 @@ unsafe impl GlobalAlloc for KernelAllocator {
717717
.release_large_page(frame)
718718
.expect("Can't deallocate frame");
719719
} else {
720-
error!("Loosing large memory region. Oh well.")
720+
log::debug!("Loosing large memory region. Oh well.")
721721
}
722722
}
723723
},

0 commit comments

Comments
 (0)