diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-13 20:51:12 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-08 09:35:41 -0500 |
commit | d8727713b6c6b021738a192ca524651c101df3fa (patch) | |
tree | 28a4711fd1f7cc2d812463bac9915209723f7e9f /common/bouncebuf.c | |
parent | b97300b62f2702bf1c02179a52c9027c8110331a (diff) | |
download | u-boot-imx-d8727713b6c6b021738a192ca524651c101df3fa.zip u-boot-imx-d8727713b6c6b021738a192ca524651c101df3fa.tar.gz u-boot-imx-d8727713b6c6b021738a192ca524651c101df3fa.tar.bz2 |
Fix console functions for U-Boot API
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@tektronik.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/bouncebuf.c')
0 files changed, 0 insertions, 0 deletions