From patchwork Tue Apr 26 12:25:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 92915 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 12F84B6F08 for ; Tue, 26 Apr 2011 22:26:50 +1000 (EST) Received: from localhost ([::1]:42634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEhLr-0002gu-04 for incoming@patchwork.ozlabs.org; Tue, 26 Apr 2011 08:26:47 -0400 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 Received: from stefanha-thinkpad.manchester-maybrook.uk.ibm.com (dyn-9-174-219-27.manchester-maybrook.uk.ibm.com [9.174.219.27]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p3QCQ9lD031687; Tue, 26 Apr 2011 06:26:09 -0600 From: Stefan Hajnoczi To: Anthony Liguori Date: Tue, 26 Apr 2011 13:25:58 +0100 Message-Id: <1303820763-6720-2-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.1 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.196.100.163 Cc: Paolo Bonzini , qemu-devel@nongnu.org, Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 1/6] tracetool: allow ) in trace output string X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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" }