Message ID | 20081031025131.26406.41818.stgit@terra (mailing list archive) |
---|---|
State | Accepted, archived |
Commit | 8ba4773aee23a5e2e1ce386c5bd86e407496de99 |
Headers | show |
On Thu, Oct 30, 2008 at 10:51:32PM -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>
diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c index ae32801..a28f021 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, uncompressed size=%08lx)\n\r", _start, ei.loadsize); if ((unsigned long)_end < ei.memsize)
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(-)