Skip to content

Commit ed36cc4

Browse files
author
Marten Lootsma
committed
Add trace logging with size of block device
1 parent 5484f58 commit ed36cc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ int SPIFBlockDevice::init()
210210
// Dummy And Mode Cycles Back default 0
211211
_dummy_and_mode_cycles = _write_dummy_and_mode_cycles;
212212
_is_initialized = true;
213+
tr_info("Device size: %llu Kbytes", _device_size_bytes / 1024);
213214

214215
exit_point:
215216
_mutex->unlock();
@@ -667,6 +668,7 @@ int SPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, si
667668
(param_table[5] << 8) |
668669
param_table[4]);
669670
_device_size_bytes = (density_bits + 1) / 8;
671+
tr_debug("Density bits: %ld , device size: %llu bytes", density_bits, _device_size_bytes);
670672

671673
// Set Default read/program/erase Instructions
672674
_read_instruction = SPIF_READ;

0 commit comments

Comments
 (0)