]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commitdiff
scripts/tracetool: don't barf on formats with precision
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 25 Sep 2014 09:40:14 +0000 (10:40 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 26 Sep 2014 08:34:39 +0000 (09:34 +0100)
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

index b9a08443fc1960ed0ec25c5d92db07a3b15efad5..3d5743f93e4a5130dfd93845a43c402e735aef6f 100644 (file)
@@ -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."""