summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-16 03:37:54 (GMT)
committerSimon Glass <sjg@chromium.org>2017-07-11 16:08:20 (GMT)
commitd8c6fb8cedbc35eee27730a7fa544e499b3c81cc (patch)
tree7ee071794d8b4fc7592ccfa24ee7c25304ce4088 /common
parentd63b5b4fbb401e2ffbce5083c7f3d9f8045651ba (diff)
downloadu-boot-fsl-qoriq-d8c6fb8cedbc35eee27730a7fa544e499b3c81cc.tar.xz
sandbox: Drop special case console code for sandbox
At present sandbox has a special case where it directly calls os_putc() when it does not have a console yet. Now that we have the pre-console buffer enabled we can drop this. Any early characters will be buffered and output later. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'common')
-rw-r--r--common/console.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/common/console.c b/common/console.c
index 762d5f2..c6156f3 100644
--- a/common/console.c
+++ b/common/console.c
@@ -465,13 +465,6 @@ static inline void print_pre_console_buffer(int flushpoint) {}
void putc(const char c)
{
-#ifdef CONFIG_SANDBOX
- /* sandbox can send characters to stdout before it has a console */
- if (!gd || !(gd->flags & GD_FLG_SERIAL_READY)) {
- os_putc(c);
- return;
- }
-#endif
#ifdef CONFIG_DEBUG_UART
/* if we don't have a console yet, use the debug UART */
if (!gd || !(gd->flags & GD_FLG_SERIAL_READY)) {
@@ -508,12 +501,6 @@ void putc(const char c)
void puts(const char *s)
{
-#ifdef CONFIG_SANDBOX
- if (!gd || !(gd->flags & GD_FLG_SERIAL_READY)) {
- os_puts(s);
- return;
- }
-#endif
#ifdef CONFIG_DEBUG_UART
if (!gd || !(gd->flags & GD_FLG_SERIAL_READY)) {
while (*s) {