1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

Display progress for what is actually erased/written

The patch updates calculation of total length for the operation
which is displayed with progress.

The reason is: even if, for example the whole chip erase or write
was requested, the actual length of bytes modified can be less than
whole chip size (areas which already have expected content,
are skipped).

Change-Id: I88ac4d40f1b6ccc1636b1efb690d8d68bdebec08
Co-developed-by: Anastasia Klimchuk <aklm@flashrom.org>
Co-developed-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/84439
Reviewed-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Anastasia Klimchuk
2024-09-20 23:33:07 +10:00
parent 34b1a6aa57
commit cbdb8534d2
5 changed files with 113 additions and 9 deletions

View File

@ -317,7 +317,7 @@ All operations involving any chip access (probe/read/write/...) require the ``-p
**--progress**
[Experimental feature] Show progress percentage of operations on the standard output.
Show progress percentage of operations on the standard output.
**--sacrifice-ratio <ratio>**
Fraction (as a percentage, 0-50) of an erase block that may be erased even if unmodified.