[PATCH] ppc64: print negative numbers correctly in boot wrapper
authorOlaf Hering <olh@suse.de>
Wed, 8 Jun 2005 05:12:00 +0000 (15:12 +1000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 8 Jun 2005 17:18:59 +0000 (10:18 -0700)
commit7840e5e95c1a8622425f11454600a49b6c718886
tree52fdb9af6d424196231e78ec17842a24de1fa8c5
parent35d1bc90546d1f0af198886ae8062a550142d926
[PATCH] ppc64: print negative numbers correctly in boot wrapper

if num has a value of -1, accessing the digits[] array will fail and the
format string will be printed in funny way, or not at all. This happens if
one prints negative numbers.
Just change the code to match lib/vsprintf.c
asm/div64.h cant be used because u64 maps to u32 for this build.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc64/boot/prom.c