summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/console.c
diff options
context:
space:
mode:
authorDawid Niedzwiecki <dn@semihalf.com>2021-06-28 12:29:37 +0200
committerCommit Bot <commit-bot@chromium.org>2021-07-02 09:42:58 +0000
commit3bb10dd59fa68b2b5a3e0d4e560bda9bef4efcd8 (patch)
tree3a9a14c13b6683e7cf0ab2a574c940ae16124b94 /zephyr/shim/src/console.c
parent5ca2bdaf876c5ee91f4adbc9bb634b9d4f035d2d (diff)
downloadchrome-ec-3bb10dd59fa68b2b5a3e0d4e560bda9bef4efcd8.tar.gz
zephyr: change host console shim interface
Allow passing a whole string to the console buffer, which is sent to host. This should speed up printing because a mutex doesn't have to be locked for every char separately. BUG=b:191724484 BRANCH=none TEST=Make sure buffering of console to host works with the 'ectool console' command Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I5b081984bfa4f930ad4729b19975b1c2eb4bbd18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2988193 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/src/console.c')
-rw-r--r--zephyr/shim/src/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/src/console.c b/zephyr/shim/src/console.c
index 5d4e2de16f..28f0067249 100644
--- a/zephyr/shim/src/console.c
+++ b/zephyr/shim/src/console.c
@@ -220,7 +220,7 @@ void uart_write_char(char c)
printk("%c", c);
if (IS_ENABLED(CONFIG_PLATFORM_EC_HOSTCMD_CONSOLE))
- console_buf_notify_char(c);
+ console_buf_notify_chars(&c, 1);
}
void uart_flush_output(void)