From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEhLP-0002bh-0E for qemu-devel@nongnu.org; Tue, 26 Apr 2011 08:26:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEhLO-00037j-7N for qemu-devel@nongnu.org; Tue, 26 Apr 2011 08:26:18 -0400 Received: from mtagate3.uk.ibm.com ([194.196.100.163]:59012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEhLO-00036I-07 for qemu-devel@nongnu.org; Tue, 26 Apr 2011 08:26:18 -0400 Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p3QCQC7r002775 for ; Tue, 26 Apr 2011 12:26:12 GMT Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p3QCRDWM1617936 for ; Tue, 26 Apr 2011 13:27:15 +0100 Received: from d06av09.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p3QCQ9iZ031713 for ; Tue, 26 Apr 2011 06:26:09 -0600 From: Stefan Hajnoczi Date: Tue, 26 Apr 2011 13:25:58 +0100 Message-Id: <1303820763-6720-2-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1303820763-6720-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1303820763-6720-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 1/6] tracetool: allow ) in trace output string List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Paolo Bonzini , qemu-devel@nongnu.org, Stefan Hajnoczi From: Paolo Bonzini Be greedy in matching the trailing "\)*" pattern. Otherwise, all the text in the trace string up to the last closed parenthesis is taken as part of the prototype. Signed-off-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- scripts/tracetool | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/tracetool b/scripts/tracetool index 412f695..9912f36 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -51,7 +51,7 @@ get_args() { local args args=${1#*\(} - args=${args%\)*} + args=${args%%\)*} echo "$args" } -- 1.7.4.1