]> code.ossystems Code Review - openembedded-core.git/commit
mtd-utils: Fix return value of ubiformat
authorOtavio Salvador <otavio.salvador@gmail.com>
Fri, 12 Jun 2020 18:08:09 +0000 (15:08 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Jun 2020 13:53:40 +0000 (14:53 +0100)
commit7ebacd9cbaec98fbc406e8ae99c9805a24fdadc6
tree4279b3560c7c943dec0ab6b8290886ad2ff3d5e8
parent749731a420fb905b6af97ce2909f06b2bcd14fe2
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.

Backport fix from 2.1.2

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/mtd/mtd-utils/0001-mtd-utils-Fix-return-value-of-ubiformat.patch [new file with mode: 0644]
meta/recipes-devtools/mtd/mtd-utils_git.bb