diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-10-21 16:18:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-24 12:17:17 +0100 |
commit | f9cf31525fc885e1a0f65bd55654631257f87078 (patch) | |
tree | 81844587217383be9c54758cd0e936ab33020bbd /meta/lib | |
parent | 23b30c34581948e1ea02c25cbf7b9194d7e49fb8 (diff) | |
download | openembedded-core-contrib-f9cf31525fc885e1a0f65bd55654631257f87078.tar.gz |
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]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/rootfs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 4e81263f177..f7daf32e759 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -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)) |