Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: tools/symsrc/img_fingerprint.py

Issue 726313006: Fix GetImgFingerprint for small files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/symsrc/img_fingerprint.py
diff --git a/tools/symsrc/img_fingerprint.py b/tools/symsrc/img_fingerprint.py
index c4b6395b87f5dc43b06543481738d6c1a0708b7a..3d6708e2a14bd6270ba8a0562a763bfc4059c09f 100755
--- a/tools/symsrc/img_fingerprint.py
+++ b/tools/symsrc/img_fingerprint.py
@@ -17,7 +17,7 @@ import pefile
def GetImgFingerprint(filename):
"""Returns the fingerprint for an image file"""
pe = pefile.PE(filename)
- return "%08X%06x" % (
+ return "%08X%x" % (
pe.FILE_HEADER.TimeDateStamp, pe.OPTIONAL_HEADER.SizeOfImage)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698