From 8eb1110aa82f7b7977c309c4a536a502cbd8a6c2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 8 Oct 2018 10:30:42 -0400 Subject: [PATCH] logextract: Fix handling of clock reports at end of line Signed-off-by: Kevin O'Connor --- scripts/logextract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/logextract.py b/scripts/logextract.py index c3166670..5ac52915 100755 --- a/scripts/logextract.py +++ b/scripts/logextract.py @@ -174,7 +174,7 @@ class GatherShutdown: if seq is not None: line = repl_seq_r.sub(r"\g<0>(%d)" % (seq,), line) def clock_update(m): - return m.group(0)[:-1] + "(%.6f) " % ( + return m.group(0).rstrip() + "(%.6f) " % ( self.trans_clock(int(m.group('clock')), ts),) line = repl_clock_r.sub(clock_update, line) return line