[U-Boot-Users] [PATCH] Fix some more printf() format problems.

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Jul 14 19:03:05 CEST 2008


>>
>>> 				cpuid, CONFIG_NR_CPUS - 1);
>>> 		return 1;
>>> 	}
>>> diff --git a/cpu/mpc85xx/mp.c b/cpu/mpc85xx/mp.c
>>> index a527cf3..75ceba9 100644
>>> --- a/cpu/mpc85xx/mp.c
>>> +++ b/cpu/mpc85xx/mp.c
>>> @@ -50,12 +50,12 @@ int cpu_status(int nr)
>>>
>>> 	if (nr == id) {
>>> 		table = (u32 *)get_spin_addr();
>>> -		printf("table base @ 0x%08x\n", table);
>>> +		printf("table base @ 0x%08x\n", (u32)table);
>> why not use %p? it's a pointer.
>
> do we support %p in u-boot?

yes we support it.

Best Regards,
J.




More information about the U-Boot mailing list