]> git.itanic.dy.fi Git - scan-pagemap/commitdiff
Analyzer: Indent page stats nicely
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 29 Aug 2010 10:27:32 +0000 (13:27 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 29 Aug 2010 10:27:32 +0000 (13:27 +0300)
We will soon have more detailed page stats, so indent the existing
lines to improve readability.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
analyze.c

index 7d28c009848b02f0f519f581302f6570f6428fe4..fb66dcf95c665bc4d0b1d9271879e5ab5dc3d4f2 100644 (file)
--- a/analyze.c
+++ b/analyze.c
@@ -126,10 +126,10 @@ void print_page_stats(struct pageframe *pf)
        af.ops.callback = count_pages;
 
        count = bintree_walk(&pf->tree, &af.ops);
-       printf("present pages: %ld, %lld %sB\n"
-               "Swapped pages: %ld, %lld %sB\n"
-               "Unique pages: %ld, %lld %sB\n"
-               "Total %ld physical pages, %lld %sB\n",
+       printf("      present pages: %6ld, %5lld %sB\n"
+               "      swapped pages: %6ld, %5lld %sB\n"
+               "       unique pages: %6ld, %5lld %sB\n"
+               "        total pages: %6ld, %5lld %sB\n",
                af.pages_present,
                PAGE_TO_NICE(af.pages_present),
                PAGE_TO_NICE_UNIT(af.pages_present),