]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Allow puts() output before global_data is set up
authorSimon Glass <sjg@chromium.org>
Fri, 16 Nov 2018 01:44:04 +0000 (18:44 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 26 Nov 2018 13:25:36 +0000 (08:25 -0500)
commita94fe418b5e6fc8a44617313be9f8448f96f94b6
tree54f2a64ef405ee95d8547d22ccfc18fb8aabfaff
parent7e6f6e38a444e738e7681b8a561fc7b32305bf17
sandbox: Allow puts() output before global_data is set up

We support putc() in this case but not puts(), but this is more useful
since it is what printf() uses.

This particularly affects debugging early in SPL, where currently printf()
statements result in no output. Fix this by adding a special case into
puts() for sandbox, just like putc().

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
common/console.c