firmware-utils: mkfwimage: provide human readable error
authorPetr Štetiar <ynezz@true.cz>
Fri, 19 Jul 2019 13:52:46 +0000 (15:52 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 19 Jul 2019 14:16:15 +0000 (16:16 +0200)
commit9401780c2c87dc78116eabe30b4eae987b05a921
tree635195719087f8f28f6972e977334f0a43ec6901
parent83e60f0df6e1f80011d454103fd4156d27dc7d98
firmware-utils: mkfwimage: provide human readable error

While looking at the ath25 build breakage of 19.07 images today I've
encountered following error:

 mkfwimage -B XS5 -v [...] ath25-ubnt5-squashfs-sysupgrade.bin.new
 ERROR: Failed creating firmware layout description - error code: -2

Which is barely human readable and needs poking into the source code, so
this patch makes the error more verbose and usable by mere mortals.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
tools/firmware-utils/src/mkfwimage.c