mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
m68knommu: Fix printk() format in free_initrd_mem()
arch/m68k/mm/init_no.c:123: warning: format "%d" expects type "int", but argument 2 has type "long unsigned int" And use pr_notice() while we're at it. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
This commit is contained in:
parent
45d1564cce
commit
6617eaf33d
1 changed files with 3 additions and 2 deletions
|
@ -120,7 +120,8 @@ void free_initrd_mem(unsigned long start, unsigned long end)
|
||||||
totalram_pages++;
|
totalram_pages++;
|
||||||
pages++;
|
pages++;
|
||||||
}
|
}
|
||||||
printk (KERN_NOTICE "Freeing initrd memory: %dk freed\n", pages * (PAGE_SIZE / 1024));
|
pr_notice("Freeing initrd memory: %luk freed\n",
|
||||||
|
pages * (PAGE_SIZE / 1024));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -141,7 +142,7 @@ void free_initmem(void)
|
||||||
free_page(addr);
|
free_page(addr);
|
||||||
totalram_pages++;
|
totalram_pages++;
|
||||||
}
|
}
|
||||||
printk(KERN_NOTICE "Freeing unused kernel memory: %ldk freed (0x%x - 0x%x)\n",
|
pr_notice("Freeing unused kernel memory: %luk freed (0x%x - 0x%x)\n",
|
||||||
(addr - PAGE_ALIGN((long) &__init_begin)) >> 10,
|
(addr - PAGE_ALIGN((long) &__init_begin)) >> 10,
|
||||||
(int)(PAGE_ALIGN((unsigned long)(&__init_begin))),
|
(int)(PAGE_ALIGN((unsigned long)(&__init_begin))),
|
||||||
(int)(addr - PAGE_SIZE));
|
(int)(addr - PAGE_SIZE));
|
||||||
|
|
Loading…
Reference in a new issue