tools: imagetool: Show error message when detecting image type failed

Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
Pali Rohár 2023-01-29 17:45:54 +01:00 committed by Tom Rini
parent 27e46a991c
commit 6c58aa1e61

View file

@ -71,6 +71,11 @@ int imagetool_verify_print_header(
}
}
if (retval != 0) {
fprintf(stderr, "%s: cannot detect image type\n",
params->cmdname);
}
return retval;
}