Skip to content

Commit

Permalink
[MIPS] Fix reported amount of freed memory - it's in kB not bytes
Browse files Browse the repository at this point in the history
While at it, change message on DEC for consistency.

Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Thiemo Seufer authored and Ralf Baechle committed Jan 24, 2007
1 parent 3f31837 commit 80aac59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/mips/dec/prom/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ unsigned long __init prom_free_prom_memory(void)
addr += PAGE_SIZE;
}

printk("Freeing unused PROM memory: %ldk freed\n",
printk("Freeing unused PROM memory: %ldkb freed\n",
(end - PAGE_SIZE) >> 10);

return end - PAGE_SIZE;
Expand Down
3 changes: 2 additions & 1 deletion arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ void free_initmem(void)

freed = prom_free_prom_memory();
if (freed)
printk(KERN_INFO "Freeing firmware memory: %ldk freed\n",freed);
printk(KERN_INFO "Freeing firmware memory: %ldkb freed\n",
freed >> 10);

free_init_pages("unused kernel memory",
__pa_symbol(&__init_begin),
Expand Down

0 comments on commit 80aac59

Please sign in to comment.