diff options
author | Dirk Behme <dirk.behme@googlemail.com> | 2011-08-09 11:52:57 +0400 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-09-04 13:34:00 +0400 |
commit | 8fcf5959a8dcd92ef01d5e909a5c14581488df93 (patch) | |
tree | f37749cc793482c39c8da48609476c0b8e572924 /tools | |
parent | 080a46eaf1c2a51cc4df1a4cd3ff2578e64c46b6 (diff) | |
download | u-boot-8fcf5959a8dcd92ef01d5e909a5c14581488df93.tar.xz |
mkimage: Fix 'Unknown OMAP image type - 5'
Using mkimage with e.g.
tools/mkimage -A arm -T firmware -O u-boot -d u-boot.bin foo.img
gives a warning
"Unknown OMAP image type - 5"
while it seems that the image itself is created successfully.
This does come from the patch "mkimage: Add OMAP boot image support".
The method check_image_type in image_type_params is supposed to just
return success or failure. However, for omap it also calls fprintf:
static int omapimage_check_image_types(uint8_t type)
{
if (type == IH_TYPE_OMAPIMAGE)
return EXIT_SUCCESS;
else {
fprintf(stderr, "Unknown OMAP image type - %x", type);
return EXIT_FAILURE;
}
}
All the other image checkers and no others have this, so the fix is to
simply remove the fprintf.
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
CC: John Rigby <john.rigby@linaro.org>
CC: Aneesh V <aneesh@ti.com>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/omapimage.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/omapimage.c b/tools/omapimage.c index 29d91cc69c..5e739ac647 100644 --- a/tools/omapimage.c +++ b/tools/omapimage.c @@ -49,7 +49,6 @@ static int omapimage_check_image_types(uint8_t type) if (type == IH_TYPE_OMAPIMAGE) return EXIT_SUCCESS; else { - fprintf(stderr, "Unknown OMAP image type - %x", type); return EXIT_FAILURE; } } |