]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Fix printing progress
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 21:06:46 +0000 (23:06 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
commitae3b8750cfbee112a904a7abee3a84d2dda1e28d
tree5493690f7ab987903c44885e106f4db9b04cc9ed
parent84f3dcf479915e9b88b1f51b2b1db7f430d95388
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>
tools/kwboot.c