Skip to content

Commit

Permalink
powerpc/mm: Fix printk type warning in mmu_context_nohash
Browse files Browse the repository at this point in the history
We need to use %zu instead of %d when printing a sizeof()

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Mar 24, 2009
1 parent d62cbf4 commit ff7c660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/mmu_context_nohash.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ void __init mmu_context_init(void)
#endif

printk(KERN_INFO
"MMU: Allocated %d bytes of context maps for %d contexts\n",
"MMU: Allocated %zu bytes of context maps for %d contexts\n",
2 * CTX_MAP_SIZE + (sizeof(void *) * (last_context + 1)),
last_context - first_context + 1);

Expand Down

0 comments on commit ff7c660

Please sign in to comment.