summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/uart_printf.c6
-rw-r--r--zephyr/shim/src/console.c2
2 files changed, 3 insertions, 5 deletions
diff --git a/common/uart_printf.c b/common/uart_printf.c
index ae6f79bf79..198d076971 100644
--- a/common/uart_printf.c
+++ b/common/uart_printf.c
@@ -12,11 +12,9 @@
static int __tx_char(void *context, int c)
{
/*
- * Translate '\n' to '\r\n', bypass on Zephyr because printk also
- * does this translation.
+ * Translate '\n' to '\r\n'.
*/
- if (!IS_ENABLED(CONFIG_ZEPHYR) && c == '\n' &&
- uart_tx_char_raw(context, '\r'))
+ if (c == '\n' && uart_tx_char_raw(context, '\r'))
return 1;
return uart_tx_char_raw(context, c);
}
diff --git a/zephyr/shim/src/console.c b/zephyr/shim/src/console.c
index 41e138b50c..5a465b2fd4 100644
--- a/zephyr/shim/src/console.c
+++ b/zephyr/shim/src/console.c
@@ -217,7 +217,7 @@ int uart_tx_char_raw(void *context, int c)
void uart_write_char(char c)
{
- printk("%c", c);
+ uart_poll_out(uart_shell_dev, c);
if (IS_ENABLED(CONFIG_PLATFORM_EC_HOSTCMD_CONSOLE))
console_buf_notify_chars(&c, 1);