flash: nor: use binary prefixes consistently
When printing memory sizes standard ISO 80000-1 prefixes should be used. Also a space should be added between any number and its unit according to papers publication rules. Change-Id: Id1d35e210766b55c201de4e80ac165d8d0414d0a Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/6416 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
f77c919cf4
commit
66d6f9a1e7
@@ -774,7 +774,7 @@ static int psoc4_probe(struct flash_bank *bank)
|
||||
num_macros++;
|
||||
}
|
||||
|
||||
LOG_DEBUG("SPCIF geometry: %" PRIu32 " kb flash, row %" PRIu32 " bytes.",
|
||||
LOG_DEBUG("SPCIF geometry: %" PRIu32 " KiB flash, row %" PRIu32 " bytes.",
|
||||
flash_size_in_kb, row_size);
|
||||
|
||||
/* if the user sets the size manually then ignore the probed value
|
||||
@@ -788,7 +788,7 @@ static int psoc4_probe(struct flash_bank *bank)
|
||||
if (num_macros > 1)
|
||||
snprintf(macros_txt, sizeof(macros_txt), " in %" PRIu32 " macros", num_macros);
|
||||
|
||||
LOG_INFO("flash size = %" PRIu32 " kbytes%s", flash_size_in_kb, macros_txt);
|
||||
LOG_INFO("flash size = %" PRIu32 " KiB%s", flash_size_in_kb, macros_txt);
|
||||
|
||||
/* calculate number of pages */
|
||||
uint32_t num_rows = flash_size_in_kb * 1024 / row_size;
|
||||
|
||||
Reference in New Issue
Block a user