summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Miao2015-04-12 18:31:46 -0500
committerEric Miao2015-04-30 11:36:17 -0500
commit4cc3978276cd70936a35ad5f10b1d67e20a3888e (patch)
tree3ca7d00d9e0b3a91b5928b7de976b01b531a34f6 /libsparse
parent4f021538a662c89e2bf81b3467d2ff03e34905e2 (diff)
downloadplatform-system-core-4cc3978276cd70936a35ad5f10b1d67e20a3888e.tar.gz
platform-system-core-4cc3978276cd70936a35ad5f10b1d67e20a3888e.tar.xz
platform-system-core-4cc3978276cd70936a35ad5f10b1d67e20a3888e.zip
libsparse: fix crc chunk parsing in simg_dump.py
Change-Id: Ia5b7cedd88809b0e421a056704d25afa190470b8
Diffstat (limited to 'libsparse')
-rwxr-xr-xlibsparse/simg_dump.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsparse/simg_dump.py b/libsparse/simg_dump.py
index 6ece31d0c..c70d45fe3 100755
--- a/libsparse/simg_dump.py
+++ b/libsparse/simg_dump.py
@@ -135,7 +135,7 @@ def main():
135 break; 135 break;
136 else: 136 else:
137 crc_bin = FH.read(4) 137 crc_bin = FH.read(4)
138 crc = struct.unpack("<I", crc) 138 crc = struct.unpack("<I", crc_bin)
139 print("Unverified CRC32 0x%08X" % (crc)) 139 print("Unverified CRC32 0x%08X" % (crc))
140 else: 140 else:
141 print("Unknown chunk type 0x%04X" % (chunk_type), end="") 141 print("Unknown chunk type 0x%04X" % (chunk_type), end="")