summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-03-22 17:20:38 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-03-23 12:35:14 +0000
commit06e7babfc29e52f28b94e917944781b7a671744a (patch)
tree35d8b4bc7b07fb2e0cf07426fa4a44e03a42f346
parentd2f6303bbe8065f7103c65209a66a73b28616c5c (diff)
downloadchrome-ec-06e7babfc29e52f28b94e917944781b7a671744a.tar.gz
zephyr: ap_pwrseq: always define pwrsm_dbg
These are used in x86_non_dsx_common_pwrseq_console.c regardless of whether the logging subsystem is enabled or not, let's always define them so we can build with CONFIG_LOG=n. BRANCH=none BUG=b:223044986 TEST=zmake build nereid Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I6394c4f410b64a95c7a69587bfa6e2a4f106a9b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3542406 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
-rw-r--r--zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c b/zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c
index d9b03c64dd..33b14c1cec 100644
--- a/zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c
+++ b/zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c
@@ -15,7 +15,6 @@ K_TIMER_DEFINE(s5_inactive_timer, NULL, NULL);
LOG_MODULE_REGISTER(ap_pwrseq, CONFIG_AP_PWRSEQ_LOG_LEVEL);
-#ifdef CONFIG_LOG
/**
* @brief power_state names for debug
*/
@@ -34,7 +33,6 @@ const char pwrsm_dbg[][25] = {
[SYS_POWER_STATE_S3S4] = "S3S4",
[SYS_POWER_STATE_S0S3] = "S0S3",
};
-#endif
#ifdef PWRSEQ_REQUIRE_ESPI