summaryrefslogtreecommitdiff
path: root/tools/binman/cbfs_util.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 12:24:03 -0600
committerSimon Glass <sjg@chromium.org>2019-07-29 09:38:06 -0600
commit17a7421ff417f21d0e3e151c992d7188ded3c0d3 (patch)
tree71f5c9507df86c6d5c9288078c0cb59f29df66ae /tools/binman/cbfs_util.py
parent513c53e4452160f51c57479f366921183ff456f7 (diff)
binman: Add a prefix before CBFS hex offsets
Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/cbfs_util.py')
-rw-r--r--tools/binman/cbfs_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/binman/cbfs_util.py b/tools/binman/cbfs_util.py
index 45e16da0aaa..6d9a876ee85 100644
--- a/tools/binman/cbfs_util.py
+++ b/tools/binman/cbfs_util.py
@@ -715,7 +715,7 @@ class CbfsReader(object):
file_pos = fd.tell()
data = fd.read(FILE_HEADER_LEN)
if len(data) < FILE_HEADER_LEN:
- print('File header at %x ran out of data' % file_pos)
+ print('File header at %#x ran out of data' % file_pos)
return False
magic, size, ftype, attr, offset = struct.unpack(FILE_HEADER_FORMAT,
data)
@@ -724,7 +724,7 @@ class CbfsReader(object):
pos = fd.tell()
name = self._read_string(fd)
if name is None:
- print('String at %x ran out of data' % pos)
+ print('String at %#x ran out of data' % pos)
return False
if DEBUG: