From: Mike Frysinger Date: Mon, 25 Apr 2011 12:23:10 -0400 Subject: [U-Boot] [PATCH 2/3] Fix a few gcc warnings. In-Reply-To: References: <20110420201335.BC035152160@gemini.denx.de> <1303633774-22961-3-git-send-email-Joakim.Tjernlund@transmode.se> <20110424221458.90B6CD5269F@gemini.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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