From: Paolo Bonzini Date: Fri, 15 Apr 2011 13:23:59 +0000 (+0200) Subject: tracetool: allow ) in trace output string X-Git-Tag: v0.15.0-rc0~343^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a96dd472c37ceeefc0d488cb7722c6714d2f0b7;p=thirdparty%2Fqemu.git tracetool: allow ) in trace output string 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 --- diff --git a/scripts/tracetool b/scripts/tracetool index 412f6958632..9912f368d22 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -51,7 +51,7 @@ get_args() { local args args=${1#*\(} - args=${args%\)*} + args=${args%%\)*} echo "$args" }