[PATCH v4 03/20] tools: imx8image: Improve error message
    Heiko Schocher 
    hs at denx.de
       
    Sat Nov 23 17:52:47 CET 2024
    
    
  
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>
---
(no changes since v2)
Changes in v2:
add Reviewed-by from Alexander
 tools/imx8image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/imx8image.c b/tools/imx8image.c
index 7a060811c7e..15510d3e712 100644
--- a/tools/imx8image.c
+++ b/tools/imx8image.c
@@ -734,7 +734,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 +=
-- 
2.20.1
    
    
More information about the U-Boot
mailing list