[PATCH v1 03/22] tools: imx8image: Improve error message
Sverdlin, Alexander
alexander.sverdlin at siemens.com
Mon Nov 11 09:03:33 CET 2024
On Fri, 2024-11-08 at 06:21 +0100, Heiko Schocher wrote:
> Improve error message "header tag mismatched"
> Add filename to error message to see, which file
> is wrong.
>
> Signed-off-by: Heiko Schocher <hs at denx.de>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin at siemens.com>
> ---
>
> tools/imx8image.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/imx8image.c b/tools/imx8image.c
> index 96ece28bd6c..b22e8b21c47 100644
> --- a/tools/imx8image.c
> +++ b/tools/imx8image.c
> @@ -733,7 +733,7 @@ static int get_container_image_start_pos(image_t *image_stack, uint32_t align)
> fclose(fd);
>
> if (header.tag != IVT_HEADER_TAG_B0) {
> - fprintf(stderr, "header tag mismatched \n");
> + fprintf(stderr, "header tag mismatched file %s\n", img_sp->filename);
> exit(EXIT_FAILURE);
> } else {
> file_off +=
--
Alexander Sverdlin
Siemens AG
www.siemens.com
More information about the U-Boot
mailing list