[U-Boot] [PATCH 33/34] binman: Add logging for the number of pack passes

Simon Glass sjg at chromium.org
Sat Aug 24 13:23:13 UTC 2019


Sometimes binman takes multiple passes to complete packing an image. Add
logging to indicate this.

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

 tools/binman/control.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/binman/control.py b/tools/binman/control.py
index 07dffbd89c..d1ca798cfb 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -439,6 +439,7 @@ def ProcessImage(image, update_fdt, write_map, get_contents=True,
         if sizes_ok:
             break
         image.ResetForPack()
+    tout.Info('Pack completed after %d pass(es)' % (pack_pass + 1))
     if not sizes_ok:
         image.Raise('Entries changed size after packing (tried %s passes)' %
                     passes)
-- 
2.23.0.187.g17f5b7556c-goog



More information about the U-Boot mailing list