From 6a841ba1b1ca81e71f6b4df8f3533c793fb48563 Mon Sep 17 00:00:00 2001 From: Rustam Ismayilov Date: Wed, 17 Jul 2024 22:32:43 +0200 Subject: [PATCH] imgtool: Print byteorder in dumpinfo output Signed-off-by: Rustam Ismayilov Change-Id: I51c928fe4c68924a679d85bcfbef339dd4178162 --- scripts/imgtool/dumpinfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/imgtool/dumpinfo.py b/scripts/imgtool/dumpinfo.py index 7c9d894d90..db3ab4bca4 100644 --- a/scripts/imgtool/dumpinfo.py +++ b/scripts/imgtool/dumpinfo.py @@ -262,7 +262,8 @@ def dump_imginfo(imgfile, outfile=None, silent=False): sys.exit(0) print("Printing content of signed image:", os.path.basename(imgfile), "\n") - + byteorder_text = "Byte order: " + "little" if order == "<" else "big" + print_in_row(byteorder_text) # Image header section_name = "Image header (offset: 0x0)" print_in_row(section_name)