From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 31 Oct 2008 13:34:40 +1100 From: David Gibson To: Jon Smirl Subject: Re: [PATCH] Fix format string warning in arch/powerpc/boot/main.c Message-ID: <20081031023440.GC16379@yookeroo.seuss> References: <20081031023105.25877.93051.stgit@terra> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20081031023105.25877.93051.stgit@terra> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Oct 30, 2008 at 10:31:05PM -0400, Jon Smirl wrote: > 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", Hrm.. of course.. that leaves the typo "uncomressed". Apparently I was having a bad day when I wrote that statement :-/. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson