diff mbox

[PULL,14/16] scripts/tracetool: don't barf on formats with precision

Message ID 1411729177-5222-15-git-send-email-stefanha@redhat.com
State Accepted
Commit 931f53e18448487cbc118b1adafba52c3a359894
Headers show

Commit Message

Stefan Hajnoczi Sept. 26, 2014, 10:59 a.m. UTC
From: Alex Bennée <alex.bennee@linaro.org>

This only affects lttng user space tracing at the moment.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 scripts/tracetool/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py
index b9a0844..3d5743f 100644
--- a/scripts/tracetool/__init__.py
+++ b/scripts/tracetool/__init__.py
@@ -228,7 +228,7 @@  class Event(object):
                                           self.args,
                                           fmt)
 
-    _FMT = re.compile("(%\w+|%.*PRI\S+)")
+    _FMT = re.compile("(%[\d\.]*\w+|%.*PRI\S+)")
 
     def formats(self):
         """List of argument print formats."""