summaryrefslogtreecommitdiff
path: root/common/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/console.c b/common/console.c
index 60077197b5..7828d5b375 100644
--- a/common/console.c
+++ b/common/console.c
@@ -410,10 +410,12 @@ void puts(const char *s)
fputs(stdout, s);
} else {
/* Send directly to the handler */
-#ifdef CONFIG_SPL_SEMIHOSTING_SUPPORT
if (gd->have_console)
-#endif
+#if !defined(CONFIG_SPL_BUILD) | defined(CONFIG_SPL_SERIAL_SUPPORT)
serial_puts(s);
+#else
+ ; /* no printout */
+#endif
#ifdef CONFIG_SPL_SEMIHOSTING_SUPPORT
semihosting_write(s);
#endif