[U-Boot] [PATCH 2/3] Fix a few gcc warnings.

Mike Frysinger vapier at gentoo.org
Mon Apr 25 18:23:10 CEST 2011


On Mon, Apr 25, 2011 at 04:30, Joakim Tjernlund wrote:
> vapierfilter at gmail.com wrote on 2011/04/25 06:13:20:
>> On Sun, Apr 24, 2011 at 7:42 PM, Joakim Tjernlund wrote:
>> > Yes, but puts() adds an newline so you can't just replace the above printf
>> > with puts()
>>
>> no, it doesnt.  u-boot's put() doesnt act the same as the standard C library.
>
> Ah, didn't know that. I am not sure I like that especially
> when there is a fputs in u-boot too.

cant say i'm a big fan of it either, but i think it's way too buried
in the fabric of u-boot to be worth trying to change now.  and it is
slightly more flexible than the C library puts() in that you can
puts() multiple partial strings without worrying about the newline
interjection ...
-mike


More information about the U-Boot mailing list