Re: [U-Boot] printf in u-boot cannot support %f

2011-01-11 Thread Wolfgang Denk
Dear "ITechnology", In message <201101112113066880...@126.com> you wrote: > > The codes below: >... > double result1 = 3.14; > printf("result1:%f\n", result1);// error > > turn out: > result1:%f Yes, this is to be expected. > How can I get the correct result

[U-Boot] printf in u-boot cannot support %f

2011-01-11 Thread ITechnology
Hi, The codes below: ... double result1 = 3.14; printf("result1:%f\n", result1);// error turn out: result1:%f How can I get the correct result? Thanks a lot! The U-boot version is: => ver U-Boot 2008.10 (Jul 15 2009 - 21:56:05) MPC512X I wan to a littl