From 66dca4e2395c6f186c261385f4a1cd2ed4091b80 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 f9fb84a93..312c28cc7 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)