Update the timestamp regexps in syncstamp() and monostamp() for > 99999

traces where there isn't any leading whitespace before the record number
in the ktrdump output.
This commit is contained in:
John Baldwin 2008-01-25 19:24:12 +00:00
parent 581487018d
commit f455512fdd

View File

@ -978,7 +978,7 @@ def parse(self, file):
def synchstamp(self, lines):
status.startup("Rationalizing Timestamps")
tstamp_re = re.compile("\s+\d+\s+(\d+)\s+(\d+)\s+.*")
tstamp_re = re.compile("\s*\d+\s+(\d+)\s+(\d+)\s+.*")
for line in lines:
m = tstamp_re.match(line)
if (m != None):
@ -989,7 +989,7 @@ def synchstamp(self, lines):
def monostamp(self, lines):
laststamp = None
tstamp_re = re.compile("\s+\d+\s+(\d+)\s+(\d+)\s+.*")
tstamp_re = re.compile("\s*\d+\s+(\d+)\s+(\d+)\s+.*")
for line in lines:
m = tstamp_re.match(line)
if (m == None):