commit | 4cc3978276cd70936a35ad5f10b1d67e20a3888e | [log] [tgz] |
---|---|---|
author | Eric Miao <[email protected]> | Sun Apr 12 16:31:46 2015 -0700 |
committer | Eric Miao <[email protected]> | Thu Apr 30 16:36:17 2015 +0000 |
tree | 3ca7d00d9e0b3a91b5928b7de976b01b531a34f6 | |
parent | 4f021538a662c89e2bf81b3467d2ff03e34905e2 [diff] [blame] |
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="")