From fffb8c13db96322b77673295c10a0a41fdf6530e Mon Sep 17 00:00:00 2001 From: Eric Yilun Lin Date: Thu, 7 Jul 2022 11:41:28 +0800 Subject: mt8186: reports reset/shutdown reason in hex It's more readable if the reason is in hex format. BUG=none TEST=the reasons are reports in hex format BRANCH=none Change-Id: I95133806caad9047dcbbffc22b8c1f04033773d8 Signed-off-by: Eric Yilun Lin Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3750274 Reviewed-by: Ting Shen Tested-by: Eric Yilun Lin Commit-Queue: Eric Yilun Lin --- power/mt8186.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/power/mt8186.c b/power/mt8186.c index c05e785418..53ea4670d8 100644 --- a/power/mt8186.c +++ b/power/mt8186.c @@ -137,7 +137,7 @@ DECLARE_DEFERRED(release_power_button); void chipset_force_shutdown(enum chipset_shutdown_reason reason) { - CPRINTS("%s(%d)", __func__, reason); + CPRINTS("%s: 0x%x", __func__, reason); report_ap_reset(reason); is_shutdown = true; @@ -194,7 +194,7 @@ DECLARE_DEFERRED(reset_flag_deferred); void chipset_reset(enum chipset_shutdown_reason reason) { - CPRINTS("%s: %d", __func__, reason); + CPRINTS("%s: 0x%x", __func__, reason); report_ap_reset(reason); is_resetting = true; -- cgit v1.2.1