From 8484d4447ce4abde04e9a458773277645a01e538 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 8 Sep 2020 11:16:59 -0600 Subject: [PATCH] Fix compilation using no_std --- src/allocator/frame/buddy.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/allocator/frame/buddy.rs b/src/allocator/frame/buddy.rs index 947c61d512..a1bb8d99f2 100644 --- a/src/allocator/frame/buddy.rs +++ b/src/allocator/frame/buddy.rs @@ -99,13 +99,8 @@ impl BuddyAllocator { let virt = table_virt.add(i * mem::size_of::()); let mut entry = A::read::(virt); if entry.size > 0 { - println!("{}: {:X?}", i, entry); - let pages = entry.size / A::PAGE_SIZE; - println!(" pages: {}", pages); let map_pages = (pages + (Self::MAP_PAGE_BITS - 1)) / Self::MAP_PAGE_BITS; - println!(" map pages: {}", map_pages); - for _ in 0 .. map_pages { let map_phys = bump_allocator.allocate_one()?; let map_virt = A::phys_to_virt(map_phys);