commit | d01b9cedc4171b1cad19659531b493a76a069cac | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Fri Sep 24 23:06:46 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Fri Oct 01 11:07:13 2021 +0200 |
tree | 5493690f7ab987903c44885e106f4db9b04cc9ed | |
parent | edb632440559164eec43f3d5e5e2bfa8ab6cb5f2 [diff] |
tools: kwboot: Fix printing progress Ensure that `pos` is still in range up to the `width` so printing 100% works also for bigger images. After printing 100% progress reset it to zero, so that next progressbar can be started. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>