commit | 2eb5abb0ee6140628d9193fdebbf9d3972f65297 | [log] [tgz] |
---|---|---|
author | Eric Miao <emiao@nvidia.com> | Sun Apr 12 16:31:46 2015 -0700 |
committer | Eric Miao <emiao@nvidia.com> | Thu Apr 30 16:36:17 2015 +0000 |
tree | 3ca7d00d9e0b3a91b5928b7de976b01b531a34f6 | |
parent | fd08a94de5d32afe76f2964f3e5c1146c622fa89 [diff] |
libsparse: fix crc chunk parsing in simg_dump.py Change-Id: Ia5b7cedd88809b0e421a056704d25afa190470b8
diff --git a/libsparse/simg_dump.py b/libsparse/simg_dump.py index 6ece31d..c70d45f 100755 --- a/libsparse/simg_dump.py +++ b/libsparse/simg_dump.py
@@ -135,7 +135,7 @@ break; else: crc_bin = FH.read(4) - crc = struct.unpack("<I", crc) + crc = struct.unpack("<I", crc_bin) print("Unverified CRC32 0x%08X" % (crc)) else: print("Unknown chunk type 0x%04X" % (chunk_type), end="")