From: Alex Bennée Date: Thu, 25 Sep 2014 09:40:14 +0000 (+0100) Subject: scripts/tracetool: don't barf on formats with precision X-Git-Tag: v2.2.0-rc0~70^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=931f53e18448487cbc118b1adafba52c3a359894;p=users%2Fdwmw2%2Fqemu.git scripts/tracetool: don't barf on formats with precision This only affects lttng user space tracing at the moment. Signed-off-by: Alex Bennée Signed-off-by: Stefan Hajnoczi --- diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py index b9a08443fc..3d5743f93e 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."""