benchmarks/mtd: use uniform output style for numbers

One of the four values emitted by this interactive tools uses the
hexadecimal presentation. The other values are decimal numbers.
Now the confusion is avoided: all numbers use the decimal
representation.

In addition the suffix "size" is added to the "Erase block" label
in order to clarify its meaning.

Signed-off-by: Lars Kruse <devel@sumpfralle.de>
This commit is contained in:
Lars Kruse 2026-06-09 22:14:40 +02:00 committed by Xiang Xiao
parent 499352fb0c
commit 397047fa37

View file

@ -102,10 +102,10 @@ int main(int argc, FAR char *argv[])
/* Report the device structure */
printf("FLASH device parameters:\n");
printf(" Sector size: %10d\n", info.sectorsize);
printf(" Sector count: %10d\n", info.numsectors);
printf(" Erase block: %10" PRIx32 "\n", geo.erasesize);
printf(" Total size: %10d\n", info.sectorsize * info.numsectors);
printf(" Sector size: %10d\n", info.sectorsize);
printf(" Sector count: %10d\n", info.numsectors);
printf(" Erase block size: %10" PRIu32 "\n", geo.erasesize);
printf(" Total size: %10d\n", info.sectorsize * info.numsectors);
if (info.sectorsize != geo.erasesize)
{
@ -124,7 +124,7 @@ int main(int argc, FAR char *argv[])
goto errout_with_driver;
}
/* Fill the buffer with known data and print it in hex format */
/* Fill the buffer with known data */
for (int i = 0; i < info.sectorsize; i++)
{