mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 11:55:21 +02:00
Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo. (Line endings, blank lines at end of file, trailing whitespace)
This commit is contained in:
@@ -33,7 +33,7 @@ void spiffs_api_unlock(spiffs *fs)
|
||||
|
||||
s32_t spiffs_api_read(spiffs *fs, uint32_t addr, uint32_t size, uint8_t *dst)
|
||||
{
|
||||
esp_err_t err = esp_partition_read(((esp_spiffs_t *)(fs->user_data))->partition,
|
||||
esp_err_t err = esp_partition_read(((esp_spiffs_t *)(fs->user_data))->partition,
|
||||
addr, dst, size);
|
||||
if (unlikely(err)) {
|
||||
ESP_LOGE(TAG, "failed to read addr %08x, size %08x, err %d", addr, size, err);
|
||||
@@ -44,7 +44,7 @@ s32_t spiffs_api_read(spiffs *fs, uint32_t addr, uint32_t size, uint8_t *dst)
|
||||
|
||||
s32_t spiffs_api_write(spiffs *fs, uint32_t addr, uint32_t size, uint8_t *src)
|
||||
{
|
||||
esp_err_t err = esp_partition_write(((esp_spiffs_t *)(fs->user_data))->partition,
|
||||
esp_err_t err = esp_partition_write(((esp_spiffs_t *)(fs->user_data))->partition,
|
||||
addr, src, size);
|
||||
if (unlikely(err)) {
|
||||
ESP_LOGE(TAG, "failed to write addr %08x, size %08x, err %d", addr, size, err);
|
||||
@@ -55,7 +55,7 @@ s32_t spiffs_api_write(spiffs *fs, uint32_t addr, uint32_t size, uint8_t *src)
|
||||
|
||||
s32_t spiffs_api_erase(spiffs *fs, uint32_t addr, uint32_t size)
|
||||
{
|
||||
esp_err_t err = esp_partition_erase_range(((esp_spiffs_t *)(fs->user_data))->partition,
|
||||
esp_err_t err = esp_partition_erase_range(((esp_spiffs_t *)(fs->user_data))->partition,
|
||||
addr, size);
|
||||
if (err) {
|
||||
ESP_LOGE(TAG, "failed to erase addr %08x, size %08x, err %d", addr, size, err);
|
||||
@@ -64,7 +64,7 @@ s32_t spiffs_api_erase(spiffs *fs, uint32_t addr, uint32_t size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void spiffs_api_check(spiffs *fs, spiffs_check_type type,
|
||||
void spiffs_api_check(spiffs *fs, spiffs_check_type type,
|
||||
spiffs_check_report report, uint32_t arg1, uint32_t arg2)
|
||||
{
|
||||
static const char * spiffs_check_type_str[3] = {
|
||||
@@ -84,10 +84,10 @@ void spiffs_api_check(spiffs *fs, spiffs_check_type type,
|
||||
};
|
||||
|
||||
if (report != SPIFFS_CHECK_PROGRESS) {
|
||||
ESP_LOGE(TAG, "CHECK: type:%s, report:%s, %x:%x", spiffs_check_type_str[type],
|
||||
ESP_LOGE(TAG, "CHECK: type:%s, report:%s, %x:%x", spiffs_check_type_str[type],
|
||||
spiffs_check_report_str[report], arg1, arg2);
|
||||
} else {
|
||||
ESP_LOGV(TAG, "CHECK PROGRESS: report:%s, %x:%x",
|
||||
ESP_LOGV(TAG, "CHECK PROGRESS: report:%s, %x:%x",
|
||||
spiffs_check_report_str[report], arg1, arg2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user