diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:17:52 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-29 18:40:19 +0000 |
commit | 63a35eb757486151f9a64fbc4e1bc6db5ac02ec4 (patch) | |
tree | 56868eba5c6fffeee7b1165b2833b6701ebe1e79 | |
parent | ca5298e10ab3efb13776a0525d5c7cdfec9428ed (diff) | |
download | chrome-ec-63a35eb757486151f9a64fbc4e1bc6db5ac02ec4.tar.gz |
chip/it83xx/watchdog.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: Idfc118387ac3981e85ae0afbf6b670d4d07edbd3
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729218
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | chip/it83xx/watchdog.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chip/it83xx/watchdog.c b/chip/it83xx/watchdog.c index 345a100922..e88e2e46bc 100644 --- a/chip/it83xx/watchdog.c +++ b/chip/it83xx/watchdog.c @@ -24,9 +24,9 @@ static int wdt_warning_fired; */ /* Magic value to tickle the watchdog register. */ -#define ITE83XX_WATCHDOG_MAGIC_WORD 0x5C +#define ITE83XX_WATCHDOG_MAGIC_WORD 0x5C /* Start to print warning message. */ -#define ITE83XX_WATCHDOG_WARNING_MS CONFIG_AUX_TIMER_PERIOD_MS +#define ITE83XX_WATCHDOG_WARNING_MS CONFIG_AUX_TIMER_PERIOD_MS /* The interval to print warning message at critical period. */ #define ITE83XX_WATCHDOG_CRITICAL_MS 30 @@ -39,7 +39,7 @@ static void watchdog_set_warning_timer(int32_t ms, int init) void watchdog_warning_irq(void) { #ifdef CONFIG_SOFTWARE_PANIC - struct panic_data * const pdata_ptr = get_panic_data_write(); + struct panic_data *const pdata_ptr = get_panic_data_write(); #if defined(CHIP_CORE_NDS32) pdata_ptr->nds_n8.ipc = get_ipc(); @@ -64,10 +64,10 @@ void watchdog_warning_irq(void) * LP = PC+4 after a jump and link instruction (jal). */ panic_printf("Pre-WDT warning! IPC:%08x LP:%08x TASK_ID:%d\n", - get_ipc(), ilp, task_get_current()); + get_ipc(), ilp, task_get_current()); #elif defined(CHIP_CORE_RISCV) panic_printf("Pre-WDT warning! MEPC:%08x RA:%08x TASK_ID:%d\n", - get_mepc(), ira, task_get_current()); + get_mepc(), ira, task_get_current()); #endif if (!wdt_warning_fired++) |