From patchwork Fri Oct 31 02:31:05 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "jonsmirl@gmail.com" X-Patchwork-Id: 6651 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 D7480DDED5 for ; Fri, 31 Oct 2008 13:31:27 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by ozlabs.org (Postfix) with ESMTP id 67640DDE00 for ; Fri, 31 Oct 2008 13:31:09 +1100 (EST) Received: by yw-out-2324.google.com with SMTP id 5so403020ywh.39 for ; Thu, 30 Oct 2008 19:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:subject:to:date :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=mloyDuDDT9CEfcrWMt9Hmvpi0+rVYQ9GoX89RCCCla4=; b=Lo9rJtEsz2vhyqP/yhaTMOHG8RyzRwk3NZAiT1oRajKOxU6eYUxjVA/l8sK3qX9mWH +Y5Q9xg8MHlfesaRimIpPR8ET/3ZgTF1Wvk/saoYx4zfcLwA7V//shk3p8bnyGvhgF/6 Kar72n9gJtZ5ei9GwT9vvoVEYiBV+VjKAhkXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:subject:to:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; b=u5i7whmPOC+OoI4F30AmNI6a06Xxue6+V0PCfx6je6QCZi3c+g8x7KwK94Lyg7zjw7 28pSfJ4ur3xoA+pl88dEGJ9HHdzX2TvObT5nlRFUM3gnbCJL4roi0Bueh+n9R/c1J9B8 2RmI9QlUb78wLB0nwTHRqCJMhwZbCJCka9Z0s= Received: by 10.90.71.15 with SMTP id t15mr1843598aga.90.1225420267709; Thu, 30 Oct 2008 19:31:07 -0700 (PDT) Received: from terra (c-76-109-159-38.hsd1.fl.comcast.net [76.109.159.38]) by mx.google.com with ESMTPS id i17sm3406950wxd.12.2008.10.30.19.31.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Oct 2008 19:31:06 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=[127.0.1.1]) by terra with esmtp (Exim 4.69) (envelope-from ) id 1Kvjmz-0006jx-Q8 for linuxppc-dev@ozlabs.org; Thu, 30 Oct 2008 22:31:05 -0400 From: Jon Smirl Subject: [PATCH] Fix format string warning in arch/powerpc/boot/main.c To: linuxppc-dev@ozlabs.org Date: Thu, 30 Oct 2008 22:31:05 -0400 Message-ID: <20081031023105.25877.93051.stgit@terra> User-Agent: StGIT/0.14.3.270.g0f36 MIME-Version: 1.0 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: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Fix format string warning in arch/powerpc/boot/main.c BOOTCC arch/powerpc/boot/main.o arch/powerpc/boot/main.c: In function 'prep_kernel': arch/powerpc/boot/main.c:65: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'long unsigned int' Signed-off-by: Jon Smirl Acked-by: David Gibson --- arch/powerpc/boot/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c index ae32801..5afa1d4 100644 --- a/arch/powerpc/boot/main.c +++ b/arch/powerpc/boot/main.c @@ -63,7 +63,7 @@ static struct addr_range prep_kernel(void) */ if ((unsigned long)_start < ei.loadsize) fatal("Insufficient memory for kernel at address 0!" - " (_start=%p, uncomressed size=%08x)\n\r", + " (_start=%p, uncomressed size=%08lx)\n\r", _start, ei.loadsize); if ((unsigned long)_end < ei.memsize)