powerpc: Print decimal values in prom_init.c
authorMichael Neuling <mikey@neuling.org>
Tue, 27 Jul 2010 18:26:21 +0000 (18:26 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 31 Jul 2010 05:05:20 +0000 (15:05 +1000)
commit2c48a7d615b82e030196e8b61ab0c7933be16dff
treef05b17f8447c2b0e2dcdfafa7eac8b96acf0c087
parentceddee23be9fda04b928aa309fd95931bc4efb96
powerpc: Print decimal values in prom_init.c

Currently we look pretty stupid when printing out a bunch of things in
prom_init.c.  eg.

  Max number of cores passed to firmware: 0x0000000000000080

So I've change this to print in decimal:

  Max number of cores passed to firmware: 128 (NR_CPUS = 256)

This required adding a prom_print_dec() function and changing some
prom_printk() calls from %x to %lu.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom_init.c