All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] toaster: make debug output more readable
@ 2017-08-30 12:24 Olaf Mandel
  2017-08-31  2:12 ` Reyna, David
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Mandel @ 2017-08-30 12:24 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Olaf Mandel

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@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] toaster: make debug output more readable
  2017-08-30 12:24 [PATCH] toaster: make debug output more readable Olaf Mandel
@ 2017-08-31  2:12 ` Reyna, David
  0 siblings, 0 replies; 2+ messages in thread
From: Reyna, David @ 2017-08-31  2:12 UTC (permalink / raw)
  To: Olaf Mandel, bitbake-devel

Hi Olaf,

I have looked at both of your patches, and I think that they are both useful and consistent with Toaster, thank you!

They do not however have a Bugzilla reference, and they are missing the normal patch header. I propose that I go ahead and (a) create those Bugzilla entries for you and (b) submit them together with other pending Toaster fixes using the standard bitbake-dev patch submission, together with my additional sign-off.

Created:
	Bug 12014 - debug message during build lists layers missing separators
	Bug 12015 - set default pokydirname if no external layers

Thanks!
David
Toaster maintainer


-----Original Message-----
From: bitbake-devel-bounces@lists.openembedded.org [mailto:bitbake-devel-bounces@lists.openembedded.org] On Behalf Of Olaf Mandel
Sent: Wednesday, August 30, 2017 5:25 AM
To: bitbake-devel@lists.openembedded.org
Cc: Olaf Mandel
Subject: [bitbake-devel] [PATCH] toaster: make debug output more readable

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@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

-- 
_______________________________________________
bitbake-devel mailing list
bitbake-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/bitbake-devel


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-31  2:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30 12:24 [PATCH] toaster: make debug output more readable Olaf Mandel
2017-08-31  2:12 ` Reyna, David

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.