mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
61f564d15f
commit
eea264ead3
4 changed files with 31 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue