From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAj0U-0007qh-81 for qemu-devel@nongnu.org; Fri, 15 Apr 2011 09:24:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAj0T-0001cn-GK for qemu-devel@nongnu.org; Fri, 15 Apr 2011 09:24:18 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:60920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAj0T-0001ci-9T for qemu-devel@nongnu.org; Fri, 15 Apr 2011 09:24:17 -0400 Received: by pxi15 with SMTP id 15so3004423pxi.33 for ; Fri, 15 Apr 2011 06:24:16 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 15 Apr 2011 15:23:59 +0200 Message-Id: <1302873840-17161-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1302873840-17161-1-git-send-email-pbonzini@redhat.com> References: <1302873840-17161-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] allow ) in trace output string List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- 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