summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2022-07-07 11:41:28 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-07 09:07:47 +0000
commitfffb8c13db96322b77673295c10a0a41fdf6530e (patch)
tree40fb1409e8c628d4e658f9134c17d4fd371da82d
parent1cbc1b5170afd28473330e385b7317d95b14d960 (diff)
downloadchrome-ec-fffb8c13db96322b77673295c10a0a41fdf6530e.tar.gz
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 <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3750274 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Tested-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
-rw-r--r--power/mt8186.c4
1 files 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;