Merge branch 'bugfix/sleep_wrong_log_lvl_v4.3' into 'release/v4.3'

Sleep: fix wrong debug level (backport v4.3)

See merge request espressif/esp-idf!16037
This commit is contained in:
Jiang Jiang Jian
2021-11-23 14:31:30 +00:00

View File

@ -1324,11 +1324,12 @@ static uint32_t get_power_down_flags(void)
#endif #endif
const char *option_str[] = {"OFF", "ON", "AUTO(OFF)" /* Auto works as OFF */}; const char *option_str[] = {"OFF", "ON", "AUTO(OFF)" /* Auto works as OFF */};
ESP_LOGD(TAG, "RTC_PERIPH: %s", option_str[s_config.pd_options[ESP_PD_DOMAIN_RTC_PERIPH]]); /* This function is called from a critical section, log with ESP_EARLY_LOGD. */
ESP_EARLY_LOGD(TAG, "RTC_PERIPH: %s", option_str[s_config.pd_options[ESP_PD_DOMAIN_RTC_PERIPH]]);
#if SOC_RTC_SLOW_MEM_SUPPORTED #if SOC_RTC_SLOW_MEM_SUPPORTED
ESP_LOGD(TAG, "RTC_SLOW_MEM: %s", option_str[s_config.pd_options[ESP_PD_DOMAIN_RTC_SLOW_MEM]]); ESP_EARLY_LOGD(TAG, "RTC_SLOW_MEM: %s", option_str[s_config.pd_options[ESP_PD_DOMAIN_RTC_SLOW_MEM]]);
#endif #endif
ESP_LOGD(TAG, "RTC_FAST_MEM: %s", option_str[s_config.pd_options[ESP_PD_DOMAIN_RTC_FAST_MEM]]); ESP_EARLY_LOGD(TAG, "RTC_FAST_MEM: %s", option_str[s_config.pd_options[ESP_PD_DOMAIN_RTC_FAST_MEM]]);
// Prepare flags based on the selected options // Prepare flags based on the selected options
uint32_t pd_flags = 0; uint32_t pd_flags = 0;