From: Lennart Sorensen Date: Thu, 17 Sep 2009 15:47:06 +0000 (-0400) Subject: microblaze: Actually show KiB rather than pages in "Freeing initrd memory:" X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d6f61770f910a976050458807ff8891e78303297;p=openwrt%2Fstaging%2Fblogic.git microblaze: Actually show KiB rather than pages in "Freeing initrd memory:" Fix "Freeing initrd memory:" message on microblaze to show kilobytes as claimed rather than number of pages. Signed-off-by: Lennart Sorensen Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index f207f1a94dbc..42cbc15e015a 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -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