From a9178ed0c151e6096e378777f31739556e0eeb9b Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Mon, 1 Jun 2020 18:24:15 +1000 Subject: [PATCH] bin2hex: Make sure to generate little endian files Signed-off-by: Benjamin Herrenschmidt --- scripts/bin2hex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bin2hex.py b/scripts/bin2hex.py index af278bc..cd732cb 100755 --- a/scripts/bin2hex.py +++ b/scripts/bin2hex.py @@ -8,9 +8,9 @@ with open(sys.argv[1], "rb") as f: while True: word = f.read(8) if len(word) == 8: - print("%016x" % struct.unpack('Q', word)); + print("%016x" % struct.unpack('