Skip to content

Commit

Permalink
imgtool: Print byteorder in dumpinfo output
Browse files Browse the repository at this point in the history
Signed-off-by: Rustam Ismayilov <[email protected]>
Change-Id: I51c928fe4c68924a679d85bcfbef339dd4178162
  • Loading branch information
rustammendel committed Jul 25, 2024
1 parent 4400413 commit 66dca4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/imgtool/dumpinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 66dca4e

Please sign in to comment.