diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-08 14:25:49 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-24 12:54:08 -0700 |
commit | eea264ead3ca198ed66f62a78dc4940075621ae7 (patch) | |
tree | b7005012bbfa1ba540658b6878b01b7637a1a7a1 /tools/binman/entry.py | |
parent | 61f564d15f35e5f5600ed639201b257efa09d1f1 (diff) |
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.py | 3 |
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 |