Skip to contentSkip to conversation

scripts/tracetool: don't barf on formats with precision

PATCH Applied Alex Bennée 2 participants 2 messages Sep 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/tracetool: don't barf on formats with precision

This only affects lttng user space tracing at the moment.

---
 scripts/tracetool/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/tracetool/__init__.py +1 -1
index 36c789d..5aa2eed 100644
@@ -146,7 +146,7 @@ class Event(object):
                       "\s*"
                       "(?:(?:(?P<fmt_trans>\".+),)?\s*(?P<fmt>\".+))?"
                       "\s*")
-    _FMT = re.compile("(%\w+|%.*PRI\S+)")
+    _FMT = re.compile("(%[\d\.]*\w+|%.*PRI\S+)")
 
     _VALID_PROPS = set(["disable", "tcg", "tcg-trans", "tcg-exec"])
 
Signature · 1 line
2.1.0