[PATCH 04/10] binman: Show the size when writing entries

Simon Glass sjg at chromium.org
Thu Jan 7 05:35:13 CET 2021


Update the log output to show the size, since this is useful information.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/binman/control.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/binman/control.py b/tools/binman/control.py
index 072417f3644..1952b2abf48 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -244,7 +244,8 @@ def ExtractEntries(image_fname, output_fname, outdir, entry_paths,
             if not os.path.exists(fname):
                 os.makedirs(fname)
             fname = os.path.join(fname, 'root')
-        tout.Notice("Write entry '%s' to '%s'" % (entry.GetPath(), fname))
+        tout.Notice("Write entry '%s' size %x to '%s'" %
+                    (entry.GetPath(), len(data), fname))
         tools.WriteFile(fname, data)
     return einfos
 
-- 
2.29.2.729.g45daf8777d-goog



More information about the U-Boot mailing list