linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix format string warning in arch/powerpc/boot/main.c
@ 2008-10-31  2:31 Jon Smirl
  2008-10-31  2:34 ` David Gibson
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Smirl @ 2008-10-31  2:31 UTC (permalink / raw)
  To: linuxppc-dev

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 <jonsmirl@gmail.com>
---
 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)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix format string warning in arch/powerpc/boot/main.c
  2008-10-31  2:31 [PATCH] Fix format string warning in arch/powerpc/boot/main.c Jon Smirl
@ 2008-10-31  2:34 ` David Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2008-10-31  2:34 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linuxppc-dev

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 <jonsmirl@gmail.com>

Acked-by: David Gibson <david@gibson.dropbear.id.au>

> ---
>  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-31  2:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-31  2:31 [PATCH] Fix format string warning in arch/powerpc/boot/main.c Jon Smirl
2008-10-31  2:34 ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).