Skip to content

Commit

Permalink
microblaze: Actually show KiB rather than pages in "Freeing initrd me…
Browse files Browse the repository at this point in the history
…mory:"

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]>
  • Loading branch information
Lennart Sorensen authored and michalsimek committed Sep 22, 2009
1 parent 2357548 commit d6f6177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/microblaze/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d6f6177

Please sign in to comment.