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 <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Paolo Bonzini 2011-04-15 15:23:59 +02:00 committed by Stefan Hajnoczi
parent b0b36e5d2e
commit 1a96dd472c
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ get_args()
{
local args
args=${1#*\(}
args=${args%\)*}
args=${args%%\)*}
echo "$args"
}