From 16d3e4e9fed3dd8add31991d9ae7b5b37509766c Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Wed, 9 Oct 2019 22:02:58 -0400 Subject: [PATCH] Added info to page allocation table. --- risc_v/ch3/src/page.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/risc_v/ch3/src/page.rs b/risc_v/ch3/src/page.rs index e4d973b..3f5f87d 100644 --- a/risc_v/ch3/src/page.rs +++ b/risc_v/ch3/src/page.rs @@ -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!(); } }