]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs.py: add more info to the warning message
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 21 Oct 2015 16:18:08 +0000 (16:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:17:17 +0000 (12:17 +0100)
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]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/rootfs.py

index 4e81263f1774234fa3326eb648a7596f09d6c81a..f7daf32e7591881992ca4ee0138e7497158bb8ad 100644 (file)
@@ -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))