nxgdb/mm: fix regular expression to parse log
There could be only one space ahead of address. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
1577fe3160
commit
c319863834
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ def parse_memdump_log(logfile, filters=None) -> Generator[MMNodeDump, None, None
|
|||
with open(logfile) as f:
|
||||
for line in f:
|
||||
match = re.search(
|
||||
r"\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+((?:\s+0x[0-9a-fA-F]+)+)", line
|
||||
r"(\d+)\s+(\d+)\s+(\d+)\s+(\d+)((?:\s+0x[0-9a-fA-F]+)+)", line
|
||||
)
|
||||
if not match:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue