[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] scripts/tracetool: don't barf on formats with preci
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH] scripts/tracetool: don't barf on formats with precision |
Date: |
Thu, 25 Sep 2014 10:40:14 +0100 |
This only affects lttng user space tracing at the moment.
Signed-off-by: Alex Bennée <address@hidden>
---
scripts/tracetool/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py
index 36c789d..5aa2eed 100644
--- a/scripts/tracetool/__init__.py
+++ b/scripts/tracetool/__init__.py
@@ -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"])
--
2.1.0
- [Qemu-devel] [PATCH] scripts/tracetool: don't barf on formats with precision,
Alex Bennée <=