diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:45:17 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-01 08:04:28 +0000 |
commit | 91f115b7b2951521ec44d5fb721ac6f370ade1f7 (patch) | |
tree | 5a1770ff6f5064a401265bc1619017e1294515a4 /cts | |
parent | 17348d9d2f8f28b96b650f32b13a4bc3b05a7eef (diff) | |
download | chrome-ec-91f115b7b2951521ec44d5fb721ac6f370ade1f7.tar.gz |
cts/hook/dut.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: Ibe525534d790b42fe3e5b7251a856735747c1e22
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729742
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'cts')
-rw-r--r-- | cts/hook/dut.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cts/hook/dut.c b/cts/hook/dut.c index f3a52ddaf4..1d6b1e145e 100644 --- a/cts/hook/dut.c +++ b/cts/hook/dut.c @@ -88,8 +88,7 @@ static enum cts_rc test_ticks(void) msleep(1300); interval = tick_time[1].val - tick_time[0].val; - error_pct = (interval - HOOK_TICK_INTERVAL) * 100 / - HOOK_TICK_INTERVAL; + error_pct = (interval - HOOK_TICK_INTERVAL) * 100 / HOOK_TICK_INTERVAL; if (error_pct < -10 || 10 < error_pct) { CPRINTS("tick error=%d%% interval=%lld", error_pct, interval); return CTS_RC_FAILURE; @@ -142,8 +141,8 @@ static enum cts_rc test_deferred(void) /* Invalid deferred function */ deferred_call_count = 0; - if (hook_call_deferred(&invalid_deferred_func_data, 50 * MSEC) - == EC_SUCCESS) { + if (hook_call_deferred(&invalid_deferred_func_data, 50 * MSEC) == + EC_SUCCESS) { CPRINTL("non_deferred_func_data"); return CTS_RC_FAILURE; } |