[PATCH v2] mkimage: Fix error message if write less data then expected

Tom Rini trini at konsulko.com
Fri Jul 17 22:58:31 CEST 2020


On Wed, Jul 08, 2020 at 11:52:50AM +0200, Mylène Josserand wrote:

> Add a new error message in case the size of data written
> are shorter than the one expected.
> 
> Currently, it will lead to the following error message:
> 
> "mkimage: Write error on uImage: Success"
> 
> This is not explicit when the error is because the device
> doesn't have enough space. Let's use a more understandable message:
> 
> "mkimage: Write only 4202432/4682240 bytes, probably no space left on the device"
> 
> Signed-off-by: Mylène Josserand <mylene.josserand at collabora.com>
> Reviewed-by: Walter Lozano <walter.lozano at collabora.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200717/317ca743/attachment.sig>


More information about the U-Boot mailing list