[bitbake-devel] [PATCH] toaster: make debug output more readable

Olaf Mandel o.mandel at menlosystems.com
Wed Aug 30 12:24:38 UTC 2017


One of the debug-messages during build contains a list of all layers,
but without spaces or other separators between them. Use pformat
instead.

Signed-off-by: Olaf Mandel <o.mandel at menlosystems.com>
---
 lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py
index 358cce4d..12071029 100644
--- a/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -221,7 +221,7 @@ class LocalhostBEController(BuildEnvironmentController):
                 continue  # not a custom recipe, skip
 
         layerlist.extend(nongitlayerlist)
-        logger.debug("\n\nset layers gives this list \n %s" % ''.join(layerlist))
+        logger.debug("\n\nset layers gives this list %s" % pformat(layerlist))
         self.islayerset = True
         return layerlist
 
-- 
2.11.0




More information about the bitbake-devel mailing list