mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
25a5536a6e
commit
0cd48fcef4
|
@ -498,7 +498,7 @@ def _parse_proc_meminfo_log(file):
|
||||||
for line in lines:
|
for line in lines:
|
||||||
match = meminfo_re.match(line)
|
match = meminfo_re.match(line)
|
||||||
if not match:
|
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)))
|
sample.add_value(match.group(1), int(match.group(2)))
|
||||||
|
|
||||||
if sample.valid():
|
if sample.valid():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user