summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-01-26 18:23:30 +0000
committerAmaury Pouly <amaury.pouly@gmail.com>2013-01-26 18:24:50 +0000
commitb6cad07f335db0f52e949b9ead0ea7f82202c854 (patch)
treebd4d8b5fea748fda9d41c99621582872b14feb44
parent80c019e737b1301cdcf747dedbdc96c19bf69b7a (diff)
mkimxboot: fix bad return on internal error
Change-Id: I6aec9ec694568c15856b03322208f257181eca21
-rw-r--r--rbutil/mkimxboot/mkimxboot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rbutil/mkimxboot/mkimxboot.c b/rbutil/mkimxboot/mkimxboot.c
index f6afd0cf0d..b79361dd63 100644
--- a/rbutil/mkimxboot/mkimxboot.c
+++ b/rbutil/mkimxboot/mkimxboot.c
@@ -390,7 +390,10 @@ enum imx_error_t mkimxboot(const char *infile, const char *bootfile,
{
byte a, b;
if(convxdigit(imx_sums[i].md5sum[2 * j], &a) || convxdigit(imx_sums[i].md5sum[2 * j + 1], &b))
- return false;
+ {
+ printf("[ERR][INTERNAL] Bad checksum format: %s\n", imx_sums[i].md5sum);
+ return IMX_ERROR;
+ }
md5[j] = (a << 4) | b;
}
if(memcmp(file_md5sum, md5, 16) == 0)