From 064212a191bcff50ac3dc4f1bd24095b15fc2be2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 12 Jun 2018 10:12:02 -0400 Subject: [PATCH] logextract: Detect clock field even if it is last field on 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 17584cbb..578f1a35 100755 --- a/scripts/logextract.py +++ b/scripts/logextract.py @@ -66,7 +66,7 @@ gcode_r = re.compile(r"^Read " + time_s + ": ['\"]") clock_r = re.compile(r"^clocksync state: .* clock_est=\((?P[^ ]+)" + r" (?P[0-9]+) (?P[^ ]+)\)") repl_seq_r = re.compile(r": seq: 1" + shortseq_s) -repl_clock_r = re.compile(r"clock=(?P[0-9]+) ") +repl_clock_r = re.compile(r"clock=(?P[0-9]+)(?: |$)") mcu_r = re.compile(r"MCU '(?P[^']+)' (is_)?shutdown: (?P.*)$") def add_high_bits(val, ref, mask):