ubiformat: print messages after checking a block is not bad
ubiformat prints its "flashing eraseblock x" and "formatting eraseblock
x" messages before having checked that a block is actually good. This
is misleading, so first check if a block is good and only if it is
print a message.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 71dd2e1 commit f4a1c832cfa18b558311b3b3d2b80175cedba422
@Sascha Hauer Sascha Hauer authored on 14 Nov 2018
Showing 1 changed file
View
common/ubiformat.c