Skip to content

Commit ac58159

Browse files
Apply automatic fixes from pre-commit hooks
1 parent 0250704 commit ac58159

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

src/esp32c3/src/flash.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ extern esp_rom_spiflash_legacy_data_t *rom_spiflash_legacy_data;
3030
#define g_rom_flashchip (rom_spiflash_legacy_data->chip)
3131
#define g_rom_spiflash_dummy_len_plus (rom_spiflash_legacy_data->dummy_len_plus)
3232

33-
3433
void stub_target_flash_init(void *state)
3534
{
3635
STUB_LOG_TRACE();

src/flash.c

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
/* ROM */
2020

2121
extern int esp_rom_spiflash_config_param(uint32_t device_id,
22-
uint32_t chip_size, uint32_t block_size, uint32_t sector_size,
23-
uint32_t page_size, uint32_t status_mask);
24-
22+
uint32_t chip_size, uint32_t block_size, uint32_t sector_size,
23+
uint32_t page_size, uint32_t status_mask);
2524

2625
static uint32_t device_id_to_flash_size(uint32_t device_id)
2726
{
@@ -112,15 +111,15 @@ void stub_lib_flash_info_print(const stub_lib_flash_info_t *info)
112111
{
113112
(void)info;
114113
STUB_LOGI("Flash info:\n"
115-
"\tid: 0x%x, size: %d KB,\n"
116-
"\tblock: %d KB (0x%x), sector: %d B (0x%x), page: %d B (0x%x),\n"
117-
"\tmode: %d, enc: %d\n",
118-
info->id,
119-
info->size / 1024,
120-
info->block_size / 1024, info->block_size,
121-
info->sector_size, info->sector_size,
122-
info->page_size, info->page_size,
123-
info->mode,
124-
info->encrypted
125-
);
114+
"\tid: 0x%x, size: %d KB,\n"
115+
"\tblock: %d KB (0x%x), sector: %d B (0x%x), page: %d B (0x%x),\n"
116+
"\tmode: %d, enc: %d\n",
117+
info->id,
118+
info->size / 1024,
119+
info->block_size / 1024, info->block_size,
120+
info->sector_size, info->sector_size,
121+
info->page_size, info->page_size,
122+
info->mode,
123+
info->encrypted
124+
);
126125
}

0 commit comments

Comments
 (0)