diff --git a/components/wear_levelling/test_wl_host/Flash_Emulator.cpp b/components/wear_levelling/test_wl_host/Flash_Emulator.cpp index f4e888f3d..5dc69a8bb 100644 --- a/components/wear_levelling/test_wl_host/Flash_Emulator.cpp +++ b/components/wear_levelling/test_wl_host/Flash_Emulator.cpp @@ -17,9 +17,6 @@ #include #include #include -#include "esp_log.h" - -static const char *TAG = "Flash_Emulator"; Flash_Emulator::Flash_Emulator(size_t size, size_t sector_sise, size_t min_size) { @@ -85,16 +82,12 @@ esp_err_t Flash_Emulator::erase_range(size_t start_address, size_t size) esp_err_t Flash_Emulator::write(size_t dest_addr, const void *src, size_t size) { esp_err_t result = ESP_OK; - if ((size % this->min_size) != 0) - { + if ((size % this->min_size) != 0) { result = ESP_ERR_INVALID_SIZE; - ESP_LOGE(TAG, "%s - wrond size, result=%08x, size=%08x", __func__, result, size); return result; } - if ((dest_addr % this->min_size) != 0) - { + if ((dest_addr % this->min_size) != 0) { result = ESP_ERR_INVALID_SIZE; - ESP_LOGE(TAG, "%s - wrong address, result=%08x, address=%08x", __func__, result, dest_addr); return result; } if ((this->reset_count != 0x7fffffff) && (this->reset_count != 0)) {