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:
parent
d667e9c4d6
commit
16d3e4e9fe
@ -283,8 +283,8 @@ pub fn print_page_allocations() {
|
|||||||
beg = beg.add(1);
|
beg = beg.add(1);
|
||||||
}
|
}
|
||||||
println!("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
println!("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
||||||
println!("Allocated: {:<5} pages ({:<9} bytes).", num, 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!("Free : {:>5} pages ({:>9} bytes).", num_pages-num, (num_pages-num) * PAGE_SIZE);
|
||||||
println!();
|
println!();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user