2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 09:13:55 +08:00

[MIPS] Fix reported amount of freed memory - it's in kB not bytes

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>
This commit is contained in:
Thiemo Seufer 2007-01-24 01:29:15 +00:00 committed by Ralf Baechle
parent 3f3183709f
commit 80aac59ed5
2 changed files with 3 additions and 2 deletions

View File

@ -122,7 +122,7 @@ unsigned long __init prom_free_prom_memory(void)
addr += PAGE_SIZE; addr += PAGE_SIZE;
} }
printk("Freeing unused PROM memory: %ldk freed\n", printk("Freeing unused PROM memory: %ldkb freed\n",
(end - PAGE_SIZE) >> 10); (end - PAGE_SIZE) >> 10);
return end - PAGE_SIZE; return end - PAGE_SIZE;

View File

@ -501,7 +501,8 @@ void free_initmem(void)
freed = prom_free_prom_memory(); freed = prom_free_prom_memory();
if (freed) 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", free_init_pages("unused kernel memory",
__pa_symbol(&__init_begin), __pa_symbol(&__init_begin),