summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/console_buffer.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:37:48 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-28 23:44:55 +0000
commit956388204e16538cd31c12b18d95bceeec93de19 (patch)
tree6059ffdb61f9c87ab4e9918bc085d2c57e9282d9 /zephyr/shim/src/console_buffer.c
parent558afd4a1643ace6efa3ac3872f0f83d3b442902 (diff)
downloadchrome-ec-956388204e16538cd31c12b18d95bceeec93de19.tar.gz
zephyr/shim/src/console_buffer.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I36f89d1e3b06afc7a3df4c71b6ee87623b712f3d Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730890 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/shim/src/console_buffer.c')
-rw-r--r--zephyr/shim/src/console_buffer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/zephyr/shim/src/console_buffer.c b/zephyr/shim/src/console_buffer.c
index aaeb6dae68..6f970629f1 100644
--- a/zephyr/shim/src/console_buffer.c
+++ b/zephyr/shim/src/console_buffer.c
@@ -47,11 +47,9 @@ void console_buf_notify_chars(const char *s, size_t len)
if (new_tail == head_idx)
head_idx = next_idx(head_idx);
if (new_tail == previous_snapshot_idx)
- previous_snapshot_idx =
- next_idx(previous_snapshot_idx);
+ previous_snapshot_idx = next_idx(previous_snapshot_idx);
if (new_tail == current_snapshot_idx)
- current_snapshot_idx =
- next_idx(current_snapshot_idx);
+ current_snapshot_idx = next_idx(current_snapshot_idx);
if (new_tail == read_next_idx)
read_next_idx = next_idx(read_next_idx);