diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-06 15:19:56 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-07 02:14:39 +0000 |
commit | 1e7b9ef24e81233ba99c55e435d268cb6be33dbd (patch) | |
tree | b13eea0ab6687f9a04ec8ae7f38bfec38cd9053b | |
parent | c28fa1ade5eb35534a85ce82060cf955151c6337 (diff) | |
download | chrome-ec-1e7b9ef24e81233ba99c55e435d268cb6be33dbd.tar.gz |
zephyr: Don't output a newline in cputs() unless requested
At present this function adds a newline, but it should not. Fix it.
BUG=b:167405015
BRANCH=none
TEST=zmake configure .../zephyr-chrome/projects/experimental/volteer \
-B /tmp/z/cos
zmake build /tmp/z/cos
Run on volteer and see that the keyboard output looks right.
before:
20-11-06 15:17:39.329 keyboard_scan_task
20-11-06 15:17:39.329 [0x00000000T KB init state: --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 --
20-11-06 15:17:39.342 ]
after:
20-11-06 15:19:11.144 [0x00000000T KB init state: -- -- -- -- -- -- -- -- -- -- -- -- --]
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Ic2592d49fa1f6debf8d0a65c9dc1b9bef2eb88ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2523390
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r-- | zephyr/shim/src/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/src/console.c b/zephyr/shim/src/console.c index 8250ebaca0..f59bda2f63 100644 --- a/zephyr/shim/src/console.c +++ b/zephyr/shim/src/console.c @@ -13,7 +13,7 @@ int cputs(enum console_channel channel, const char *str) { - return cprintf(channel, "%s\n", str); + return cprintf(channel, "%s", str); } static void console_vprintf(enum console_channel channel, const char *format, |