Skip to content

benchmarks/mtd: use uniform output style for numbers#3535

Open
sumpfralle wants to merge 1 commit into
apache:masterfrom
sumpfralle:benchmarks-mtd-numbers
Open

benchmarks/mtd: use uniform output style for numbers#3535
sumpfralle wants to merge 1 commit into
apache:masterfrom
sumpfralle:benchmarks-mtd-numbers

Conversation

@sumpfralle

Copy link
Copy Markdown
Contributor

Summary

Previously the output of the mtd benchmark tool looked like this:

FLASH device parameters:
   Sector size:         256
   Sector count:       2048
   Erase block:        1000
   Total size:       524288

The third line sneakily deviated from the format of the other lines:

  • The value 1000 is a hexadecimal number.
  • The three other values are decimal numbers.

There is no good reason for using the hexadecimal representation for this specific value.

Impact

The change influences only the human readable output of the interactive mtd benchmark tool.

Testing

I tried the mtd tool before and after on my rp2040 board.
The numbers looked much better afterwards.

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>

@cederom cederom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sumpfralle :-) Please to remember to attach build and runtime logs after change :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants