Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] image.bbclass: Fix debug output for rootfs size
@ 2019-07-29 12:13 Daniel Klauer
  2019-07-29 12:31 ` ✗ patchtest: failure for " Patchwork
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Klauer @ 2019-07-29 12:13 UTC (permalink / raw)
  To: openembedded-core

The debug output didn't match the calculation - it showed a wrong value.
---
 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 682858dc95..25b0ead9bf 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -529,7 +529,7 @@ def get_rootfs_size(d):
     base_size = size_kb * overhead_factor
     bb.debug(1, '%f = %d * %f' % (base_size, size_kb, overhead_factor))
     base_size2 = max(base_size, rootfs_req_size) + rootfs_extra_space
-    bb.debug(1, '%f = max(%f, %d)[%f] + %d' % (base_size2, base_size, rootfs_req_size, max(base_size, rootfs_req_size), overhead_factor))
+    bb.debug(1, '%f = max(%f, %d)[%f] + %d' % (base_size2, base_size, rootfs_req_size, max(base_size, rootfs_req_size), rootfs_extra_space))
 
     base_size = base_size2
     if base_size != int(base_size):
-- 
2.17.1



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

end of thread, other threads:[~2019-08-30  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-29 12:13 [PATCH] image.bbclass: Fix debug output for rootfs size Daniel Klauer
2019-07-29 12:31 ` ✗ patchtest: failure for " Patchwork
2019-08-30  7:24   ` [PATCH v2] " Daniel Klauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox