summaryrefslogtreecommitdiffstats
path: root/tools/symsrc
diff options
context:
space:
mode:
authorcsharp <csharp@chromium.org>2014-11-17 09:05:23 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-17 17:05:41 +0000
commit55e00b641ba4fcb347f9b8821531682843c59f27 (patch)
treeae0af0c73fef42e7125532ac38168f5a01739cb4 /tools/symsrc
parent9210bbece5a03fb5de1c5ce154338f320aa83f0a (diff)
downloadchromium_src-55e00b641ba4fcb347f9b8821531682843c59f27.zip
chromium_src-55e00b641ba4fcb347f9b8821531682843c59f27.tar.gz
chromium_src-55e00b641ba4fcb347f9b8821531682843c59f27.tar.bz2
Fix GetImgFingerprint for small files.
%06x was incorrectly adding leading zeros for small files, the value should just be %x. BUG= Review URL: https://codereview.chromium.org/726313006 Cr-Commit-Position: refs/heads/master@{#304430}
Diffstat (limited to 'tools/symsrc')
-rwxr-xr-xtools/symsrc/img_fingerprint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/symsrc/img_fingerprint.py b/tools/symsrc/img_fingerprint.py
index c4b6395..3d6708e2 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)