microblaze: Actually show KiB rather than pages in "Freeing initrd memory:"
authorLennart Sorensen <lsorense@csclub.uwaterloo.ca>
Thu, 17 Sep 2009 15:47:06 +0000 (11:47 -0400)
committerMichal Simek <monstr@monstr.eu>
Tue, 22 Sep 2009 08:10:05 +0000 (10:10 +0200)
Fix "Freeing initrd memory:" message on microblaze to show kilobytes as
claimed rather than number of pages.

Signed-off-by: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/mm/init.c

index f207f1a..42cbc15 100644 (file)
@@ -180,7 +180,8 @@ void free_initrd_mem(unsigned long start, unsigned long end)
                totalram_pages++;
                pages++;
        }
-       printk(KERN_NOTICE "Freeing initrd memory: %dk freed\n", pages);
+       printk(KERN_NOTICE "Freeing initrd memory: %dk freed\n",
+                                       (int)(pages * (PAGE_SIZE / 1024)));
 }
 #endif