[U-Boot] Fix console functions for U-Boot API

Tom Rini trini at ti.com
Mon Dec 8 22:41:25 CET 2014


On Thu, Nov 13, 2014 at 08:51:12PM -0700, Simon Glass wrote:

> Commit 709ea54 made a subtle change to the way the U-Boot API jump table
> is set up. So at present putc(), getc(), tstc() and puts() do not work
> correctly from functions that use the U-Boot API.
> 
> Previously these were set to the stdio functions, but these now take a
> parameter specifying which stdio device to use. Instead, we should change
> them to use the global functions which do not have a parameter.
> 
> This is a slight change in behaviour. The functions will now output to
> all selected stdio devices - for example putc() will output a character to
> all devices selected by stdout. However in most cases there is only one,
> and it isn't necessarily incorrect behaviour anyway.
> 
> The API version is not changed since it is compatible with what was there
> before.
> 
> Reported-by: Martin Dorwig <dorwig at tektronik.com>
> Signed-off-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141208/5dfbb924/attachment.pgp>


More information about the U-Boot mailing list