summaryrefslogtreecommitdiffstats
path: root/arch/m68k/mm/init_no.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2011-05-26 06:44:10 +0200
committerGreg Ungerer <gerg@uclinux.org>2011-07-25 02:44:04 +0200
commit6617eaf33d04836d31ea687e79ba9fef02fdbbe9 (patch)
treeaeab8b8bb14d6c3e45703225f0c3982c3b12198e /arch/m68k/mm/init_no.c
parentm68knommu: Make empty_zero_page "void *", like on m68k (diff)
downloadlinux-6617eaf33d04836d31ea687e79ba9fef02fdbbe9.tar.xz
linux-6617eaf33d04836d31ea687e79ba9fef02fdbbe9.zip
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>
Diffstat (limited to '')
-rw-r--r--arch/m68k/mm/init_no.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/m68k/mm/init_no.c b/arch/m68k/mm/init_no.c
index fdbe6795f270..50cd12cf28d9 100644
--- a/arch/m68k/mm/init_no.c
+++ b/arch/m68k/mm/init_no.c
@@ -120,7 +120,8 @@ void free_initrd_mem(unsigned long start, unsigned long end)
totalram_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
@@ -141,7 +142,7 @@ void free_initmem(void)
free_page(addr);
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,
(int)(PAGE_ALIGN((unsigned long)(&__init_begin))),
(int)(addr - PAGE_SIZE));