From patchwork Wed Mar 11 03:53:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Herrenschmidt X-Patchwork-Id: 24286 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 216D8DE1D8 for ; Wed, 11 Mar 2009 15:16:22 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: by ozlabs.org (Postfix, from userid 1030) id 8DA96DDD04; Wed, 11 Mar 2009 14:53:37 +1100 (EST) To: From: Benjamin Herrenschmidt Date: Wed, 11 Mar 2009 14:53:35 +1100 Subject: [PATCH 7/9] powerpc/mm: Fix printk type warning in mmu_context_nohash In-Reply-To: <1236743604.932194.842849421348.qpush@grosgo> Message-Id: <20090311035339.8DA96DDD04@ozlabs.org> X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org We need to use %zu instead of %d when printing a sizeof() Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/mmu_context_nohash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-work.orig/arch/powerpc/mm/mmu_context_nohash.c 2009-03-11 11:51:05.000000000 +1100 +++ linux-work/arch/powerpc/mm/mmu_context_nohash.c 2009-03-11 11:52:55.000000000 +1100 @@ -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);