From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX5XV-0002l6-Ku for qemu-devel@nongnu.org; Thu, 25 Sep 2014 05:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XX5XQ-0002hO-Ra for qemu-devel@nongnu.org; Thu, 25 Sep 2014 05:40:41 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:46999 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX5XQ-0002g3-Kx for qemu-devel@nongnu.org; Thu, 25 Sep 2014 05:40:36 -0400 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 25 Sep 2014 10:40:14 +0100 Message-Id: <1411638014-7219-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] scripts/tracetool: don't barf on formats with precision List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stefanha@redhat.com, vilanova@ac.upc.edu, mohamad.gebai@gmail.com Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org This only affects lttng user space tracing at the moment. Signed-off-by: Alex Bennée --- 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\".+),)?\s*(?P\".+))?" "\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