From 2cdc1fcdbf881fe9cecfb834289de6c496f51975 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Thu, 14 Jan 2021 10:08:18 +0530 Subject: [PATCH] efuse: change prints to ESP_EARLY_LOG for function called from startup code --- components/efuse/src/esp_efuse_utility.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/efuse/src/esp_efuse_utility.c b/components/efuse/src/esp_efuse_utility.c index 3a10401fdc..00735bbff0 100644 --- a/components/efuse/src/esp_efuse_utility.c +++ b/components/efuse/src/esp_efuse_utility.c @@ -55,7 +55,7 @@ esp_err_t esp_efuse_utility_process(const esp_efuse_desc_t* field[], void* ptr, int i = 0; while (err == ESP_OK && req_size > bits_counter && field[i] != NULL) { if (check_range_of_bits(field[i]->efuse_block, field[i]->bit_start, field[i]->bit_count) == false) { - ESP_LOGE(TAG, "Range of data does not match the coding scheme"); + ESP_EARLY_LOGE(TAG, "Range of data does not match the coding scheme"); err = ESP_ERR_CODING; } int i_reg = 0; @@ -68,7 +68,7 @@ esp_err_t esp_efuse_utility_process(const esp_efuse_desc_t* field[], void* ptr, if ((bits_counter + num_bits) > req_size) { // Limits the length of the field. num_bits = req_size - bits_counter; } - ESP_LOGD(TAG, "In EFUSE_BLK%d__DATA%d_REG is used %d bits starting with %d bit", + ESP_EARLY_LOGD(TAG, "In EFUSE_BLK%d__DATA%d_REG is used %d bits starting with %d bit", (int)field[i]->efuse_block, num_reg, num_bits, start_bit); err = func_proc(num_reg, field[i]->efuse_block, start_bit, num_bits, ptr, &bits_counter); ++i_reg;