Skip to content

Commit 78e744b

Browse files
committed
imgtool: Print byteorder in dumpinfo output
Signed-off-by: Rustam Ismayilov <[email protected]> Change-Id: I51c928fe4c68924a679d85bcfbef339dd4178162
1 parent 7f08a9d commit 78e744b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/imgtool/dumpinfo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ def dump_imginfo(imgfile, outfile=None, silent=False):
262262
sys.exit(0)
263263

264264
print("Printing content of signed image:", os.path.basename(imgfile), "\n")
265-
265+
byteorder_text = "Byte order: " + "little" if order == "<" else "big"
266+
print_in_row(byteorder_text)
266267
# Image header
267268
section_name = "Image header (offset: 0x0)"
268269
print_in_row(section_name)

0 commit comments

Comments
 (0)