]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8b979a08338b182043c33c4142842a17ed6d9b76
tree52fdb9af6d424196231e78ec17842a24de1fa8c5
parentb0dc7b309474e6fcd747662c8b0562bce77ec8dc
[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