Skip to content

Commit

Permalink
powerpc: Fix format string warning in arch/powerpc/boot/main.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jon Smirl authored and Paul Mackerras committed Oct 31, 2008
1 parent 2dccbf4 commit 8ba4773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ba4773

Please sign in to comment.