Skip to content

Commit 9753933

Browse files
committed
Remove error from tests.
1 parent 7b287c2 commit 9753933

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

components/wear_levelling/test_wl_host/Flash_Emulator.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
#include <stdio.h>
1818
#include <stdlib.h>
1919
#include <string.h>
20-
#include "esp_log.h"
21-
22-
static const char *TAG = "Flash_Emulator";
2320

2421
Flash_Emulator::Flash_Emulator(size_t size, size_t sector_sise, size_t min_size)
2522
{
@@ -85,16 +82,12 @@ esp_err_t Flash_Emulator::erase_range(size_t start_address, size_t size)
8582
esp_err_t Flash_Emulator::write(size_t dest_addr, const void *src, size_t size)
8683
{
8784
esp_err_t result = ESP_OK;
88-
if ((size % this->min_size) != 0)
89-
{
85+
if ((size % this->min_size) != 0) {
9086
result = ESP_ERR_INVALID_SIZE;
91-
ESP_LOGE(TAG, "%s - wrond size, result=%08x, size=%08x", __func__, result, size);
9287
return result;
9388
}
94-
if ((dest_addr % this->min_size) != 0)
95-
{
89+
if ((dest_addr % this->min_size) != 0) {
9690
result = ESP_ERR_INVALID_SIZE;
97-
ESP_LOGE(TAG, "%s - wrong address, result=%08x, address=%08x", __func__, result, dest_addr);
9891
return result;
9992
}
10093
if ((this->reset_count != 0x7fffffff) && (this->reset_count != 0)) {

0 commit comments

Comments
 (0)