]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: Fix return value of ubiformat
authorBarry Grussling <barry@grussling.com>
Sun, 12 Jan 2020 20:33:32 +0000 (12:33 -0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 13 Jan 2020 09:37:37 +0000 (10:37 +0100)
commit95633c4dfe943a701d4fcd809e6cabf4bf8710b8
treef900b986f699b8f5633967905e59ebc9ea25f86d
parent0a5e2fa5c1e41c6fba3bb30ac2d1d7b72d23d6bb
mtd-utils: Fix return value of ubiformat

This changeset fixes a feature regression in ubiformat.  Older versions of
ubiformat, when invoked with a flash-image, would return 0 in the case no error
was encountered.  Upon upgrading to latest, it was discovered that ubiformat
returned 255 even without encountering an error condition.

This changeset corrects the above issue and causes ubiformat, when given an
image file, to return 0 when no errors are detected.

Tested by running through my loading scripts and verifying ubiformat returned
0.

Signed-off-by: Barry Grussling <barry@grussling.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubi-utils/ubiformat.c