tracetool: allow ) in trace output string
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Apr 2011 13:23:59 +0000 (15:23 +0200)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Tue, 26 Apr 2011 12:14:49 +0000 (13:14 +0100)
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>
scripts/tracetool

index 412f6958632b027efb46cefc64c24f98169cfa26..9912f368d22e48c2b338ab6bb9a3878f6e3bad5c 100755 (executable)
@@ -51,7 +51,7 @@ get_args()
 {
     local args
     args=${1#*\(}
-    args=${args%\)*}
+    args=${args%%\)*}
     echo "$args"
 }