From ed36cc4e065ff28bf537e86a1be287aff77b76d3 Mon Sep 17 00:00:00 2001 From: Marten Lootsma Date: Tue, 4 Jun 2019 15:18:30 +0200 Subject: [PATCH] Add trace logging with size of block device --- .../storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp b/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp index b116eac5f8..f2d4c2e91f 100644 --- a/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp +++ b/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp @@ -210,6 +210,7 @@ int SPIFBlockDevice::init() // Dummy And Mode Cycles Back default 0 _dummy_and_mode_cycles = _write_dummy_and_mode_cycles; _is_initialized = true; + tr_info("Device size: %llu Kbytes", _device_size_bytes / 1024); exit_point: _mutex->unlock(); @@ -667,6 +668,7 @@ int SPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, si (param_table[5] << 8) | param_table[4]); _device_size_bytes = (density_bits + 1) / 8; + tr_debug("Density bits: %ld , device size: %llu bytes", density_bits, _device_size_bytes); // Set Default read/program/erase Instructions _read_instruction = SPIF_READ;