[U-Boot] [PATCH 1/2] improve printf behavior on arm/pxa after enabling 64bit support in printf by default.

Wolfgang Denk wd at denx.de
Fri Apr 9 23:40:11 CEST 2010


Dear Mikhail Kshevetskiy,

In message <20100329162346.017a43dc at laska.campus-ws.pu.ru> you wrote:
> commit 4b142febff71eabdb7ddbb125c7b583b24ddc434 (common: delete
> CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL) breaks printf on my
> arm/pxa270 board. For example, the code
> 
> 	int a = 128;
> 	printf("a= %d\n", a);
> 
> will print zero on the console. The problem reproduced on gcc 4.1.1,
> 4.3.3, 4.4.1 and 4.4.2.
> 
> This patch fix printf unless you'll need printing 64-bit values.

I doubt that your patch addresses the real cause of the problem.
Did you check if the stack alignment problem discussed here earlier
has been fixed for your architecture?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Die Scheu vor Verantwortung ist die Krankheit unserer Zeit.
                                                 -- Otto von Bismarck


More information about the U-Boot mailing list