This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 397047fa3 benchmarks/mtd: use uniform output style for numbers
397047fa3 is described below

commit 397047fa373b1ef971bc66d628bbdc00616307b4
Author: Lars Kruse <[email protected]>
AuthorDate: Tue Jun 9 22:14:40 2026 +0200

    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 <[email protected]>
---
 benchmarks/mtd/mtd.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/benchmarks/mtd/mtd.c b/benchmarks/mtd/mtd.c
index 475fd1c66..b9d3d8a98 100644
--- a/benchmarks/mtd/mtd.c
+++ b/benchmarks/mtd/mtd.c
@@ -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++)
     {

Reply via email to