[PATCH] powerpc: print cores passed to firmware in decimal

Jesse Larrew jlarrew at linux.vnet.ibm.com
Fri Jul 23 07:09:02 EST 2010


On 07/22/2010 12:15 AM, Michael Neuling wrote:
> @@ -869,12 +895,12 @@ static void __init prom_send_capabilities(void)
>   		cores = (u32 *)PTRRELOC(&ibm_architecture_vec[IBM_ARCH_VEC_NRCORES_OFFSET]);
>   		if (*cores != NR_CPUS) {
>   			prom_printf("WARNING ! "
> -				    "ibm_architecture_vec structure inconsistent: 0x%x !\n",
> +				    "ibm_architecture_vec structure inconsistent: 0x%i !\n",
>   				    *cores);
>    

Since we're changing from hex to decimal, we shouldn't print the "0x".

Sincerely,

-- 

Jesse Larrew
Software Engineer, Linux on Power Kernel Team
IBM Linux Technology Center
Phone: (512) 973-2052 (T/L: 363-2052)
jlarrew at linux.vnet.ibm.com



More information about the Linuxppc-dev mailing list