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-26 13:14:49 +01:00
committed by Stefan Hajnoczi
parent b0b36e5d2e
commit 1a96dd472c
+1 -1
View File
@@ -51,7 +51,7 @@ get_args()
{
local args
args=${1#*\(}
args=${args%\)*}
args=${args%%\)*}
echo "$args"
}