Skip to content
Commit 840e93fd authored by Stefan Petersen's avatar Stefan Petersen Committed by Anas Nashif
Browse files

drivers: flash: spi_nor: Print flash size properly when < 1 MiByte



When using SPI-NOR SFDP autodeteection, the flash size printed to
the log is rounded to 1 MiByte. If flash is smaller than 1 MiByte
it is printed as 0 MiByte.

With this patch smaller flash sizes are printed in kiByte, for instance
512 kiByte is printed correctly.

Signed-off-by: default avatarStefan Petersen <spe@ciellt.se>
parent 7ed8bb50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment