1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-24 02:16:19 +04:00

Added info to page allocation table.

This commit is contained in:
Stephen Marz 2019-10-09 22:02:58 -04:00
parent d667e9c4d6
commit 16d3e4e9fe

View File

@ -283,8 +283,8 @@ pub fn print_page_allocations() {
beg = beg.add(1);
}
println!("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
println!("Allocated: {:<5} pages ({:<9} bytes).", num, num * PAGE_SIZE);
println!("Free : {:<5} pages ({:<9} bytes).", num_pages-num, (num_pages-num) * PAGE_SIZE);
println!("Allocated: {:>5} pages ({:>9} bytes).", num, num * PAGE_SIZE);
println!("Free : {:>5} pages ({:>9} bytes).", num_pages-num, (num_pages-num) * PAGE_SIZE);
println!();
}
}