]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: Fix format string warning in arch/powerpc/boot/main.c
authorJon Smirl <jonsmirl@gmail.com>
Thu, 30 Oct 2008 16:51:32 +0000 (16:51 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 31 Oct 2008 09:14:19 +0000 (20:14 +1100)
Fix format string warning in arch/powerpc/boot/main.c.  Also correct
a typo ("uncomressed") on the same line.

 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>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/main.c

index ae32801ebd69de64fee9e4946f569ebb81813b95..a28f02165e97032c8eda569e97b06a4dc81fb0f9 100644 (file)
@@ -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)