diff options
| author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-03-19 15:34:13 -0400 |
|---|---|---|
| committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-03-23 22:47:34 -0400 |
| commit | ff7c660092de1f70e156cf95784a4b55556412d9 (patch) | |
| tree | 8d55c21e650478da862320e0369d9decba182951 | |
| parent | d62cbf45a84d442a6b79d993c05edfb283bab8f8 (diff) | |
powerpc/mm: Fix printk type warning in mmu_context_nohash
We need to use %zu instead of %d when printing a sizeof()
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
| -rw-r--r-- | arch/powerpc/mm/mmu_context_nohash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/mmu_context_nohash.c b/arch/powerpc/mm/mmu_context_nohash.c index ac4cb04ceb69..a70e311bd457 100644 --- a/arch/powerpc/mm/mmu_context_nohash.c +++ b/arch/powerpc/mm/mmu_context_nohash.c | |||
| @@ -380,7 +380,7 @@ void __init mmu_context_init(void) | |||
| 380 | #endif | 380 | #endif |
| 381 | 381 | ||
| 382 | printk(KERN_INFO | 382 | printk(KERN_INFO |
| 383 | "MMU: Allocated %d bytes of context maps for %d contexts\n", | 383 | "MMU: Allocated %zu bytes of context maps for %d contexts\n", |
| 384 | 2 * CTX_MAP_SIZE + (sizeof(void *) * (last_context + 1)), | 384 | 2 * CTX_MAP_SIZE + (sizeof(void *) * (last_context + 1)), |
| 385 | last_context - first_context + 1); | 385 | last_context - first_context + 1); |
| 386 | 386 | ||
