]> git.baikalelectronics.ru Git - uboot.git/commit
mkimage: Fix error message if write less data then expected
authorMylène Josserand <mylene.josserand@collabora.com>
Wed, 8 Jul 2020 09:52:50 +0000 (11:52 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 17 Jul 2020 14:47:19 +0000 (10:47 -0400)
commit04938b0a942afe79d8f9cf0aaf6a342df6a2e84c
tree2682df53acb19a923be986ecf38d4bc54f23f541
parente4f919cddab7dd02d49760594cd6bfd7ce6d232f
mkimage: Fix error message if write less data then expected

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@collabora.com>
Reviewed-by: Walter Lozano <walter.lozano@collabora.com>
tools/mkimage.c