Skip to contentSkip to conversation

rootfs.py: add more info to the warning message

PATCH New Ed Bartosh 1 participant 1 message Oct 21, 2015

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 rootfs.py: add more info to the warning message

Since the log_check_regex can potentially be false positive it makes sense to print the whole line where error is found. This way user will be able to see the error and understand if it's valid or not.

[YOCTO: #7789]

---
 meta/lib/oe/rootfs.py | 1 +
 1 file changed, 1 insertion(+)
meta/lib/oe/rootfs.py +1 -0
index 4e81263..f7daf32 100644
@@ -66,6 +66,7 @@ class Rootfs(object):
                 m = r.search(line)
                 if m:
                     found_error = 1
+                    bb.warn('[log_check] In line: [%s]' % line)
                     bb.warn('[log_check] %s: found an error message in the logfile (keyword \'%s\'):\n[log_check] %s'
 				    % (self.d.getVar('PN', True), m.group(), line))
 
Signature · 1 line
2.1.4