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-02-06 14:35:14 -05:00
committed by Tom Rini
parent 27e46a991c
commit 6c58aa1e61
+5
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;
}