diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-11-30 10:50:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-07 10:36:11 +0000 |
commit | ddfea21e06a2e6b1a1e766969f8c134a6de7388a (patch) | |
tree | ba717ab5b27a4dfa9953698d03963788b72559df /scripts | |
parent | 21a5b569370f47cc02291e1d8b76fe43faa04ea6 (diff) | |
download | openembedded-core-ddfea21e06a2e6b1a1e766969f8c134a6de7388a.tar.gz openembedded-core-ddfea21e06a2e6b1a1e766969f8c134a6de7388a.tar.bz2 openembedded-core-ddfea21e06a2e6b1a1e766969f8c134a6de7388a.zip |
pybootchartgui/parsing.py: fix error handling in meminfo parser
When matching fails, m.group(0) is invalid and can't be used in the
error message.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/parsing.py b/scripts/pybootchartgui/pybootchartgui/parsing.py index af684353fd..48eb048dae 100644 --- a/scripts/pybootchartgui/pybootchartgui/parsing.py +++ b/scripts/pybootchartgui/pybootchartgui/parsing.py @@ -498,7 +498,7 @@ def _parse_proc_meminfo_log(file): for line in lines: match = meminfo_re.match(line) if not match: - raise ParseError("Invalid meminfo line \"%s\"" % match.groups(0)) + raise ParseError("Invalid meminfo line \"%s\"" % line) sample.add_value(match.group(1), int(match.group(2))) if sample.valid(): |