]> Git Repo - linux.git/commitdiff
microblaze: Actually show KiB rather than pages in "Freeing initrd memory:"
authorLennart Sorensen <[email protected]>
Thu, 17 Sep 2009 15:47:06 +0000 (11:47 -0400)
committerMichal Simek <[email protected]>
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 <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
arch/microblaze/mm/init.c

index f207f1a94dbcd0d627ca8ab94668dbf791fef847..42cbc15e015a0752f4c3740e328dfe96d34621e6 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
 
This page took 0.053642 seconds and 4 git commands to generate.