summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-11-30 10:50:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-07 10:37:59 +0000
commit0cd48fcef4264f338e201079e68ddb2ed8d3d68a (patch)
tree94b1d3ace5fe0b7f6ab20fbf10da56370a318317
parent25a5536a6e9ca648f881e1288a281f4f679e2bec (diff)
downloadpoky-0cd48fcef4264f338e201079e68ddb2ed8d3d68a.tar.gz
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. (From OE-Core rev: ddfea21e06a2e6b1a1e766969f8c134a6de7388a) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/pybootchartgui/pybootchartgui/parsing.py2
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):
498 for line in lines: 498 for line in lines:
499 match = meminfo_re.match(line) 499 match = meminfo_re.match(line)
500 if not match: 500 if not match:
501 raise ParseError("Invalid meminfo line \"%s\"" % match.groups(0)) 501 raise ParseError("Invalid meminfo line \"%s\"" % line)
502 sample.add_value(match.group(1), int(match.group(2))) 502 sample.add_value(match.group(1), int(match.group(2)))
503 503
504 if sample.valid(): 504 if sample.valid():