summaryrefslogtreecommitdiff
path: root/tools/binman/entry.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-08 23:25:49 +0300
committerSimon Glass <sjg@chromium.org>2019-07-24 22:54:08 +0300
commiteea264ead3ca198ed66f62a78dc4940075621ae7 (patch)
treeb7005012bbfa1ba540658b6878b01b7637a1a7a1 /tools/binman/entry.py
parent61f564d15f35e5f5600ed639201b257efa09d1f1 (diff)
downloadu-boot-eea264ead3ca198ed66f62a78dc4940075621ae7.tar.xz
binman: Allow for logging information to be displayed
Binman generally operates silently but in some cases it is useful to see what Binman is actually doing at each step. Enable some logging output with different logging levels selectable via the -v flag. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r--tools/binman/entry.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index c45a2fdb4b..33d3f1e4d4 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -23,6 +23,7 @@ import sys
import fdt_util
import state
import tools
+import tout
modules = {}
@@ -272,7 +273,7 @@ class Entry(object):
new_size = len(data)
if state.AllowEntryExpansion():
if new_size > self.contents_size:
- print("Entry '%s' size change from %#x to %#x" % (
+ tout.Debug("Entry '%s' size change from %#x to %#x" % (
self._node.path, self.contents_size, new_size))
# self.data will indicate the new size needed
size_ok = False