aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracetool
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-04-15 15:23:59 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-04-26 13:14:49 +0100
commit1a96dd472c37ceeefc0d488cb7722c6714d2f0b7 (patch)
tree4bb702e354791a802ac609d116226671b7e9f3f0 /scripts/tracetool
parentb0b36e5d2e4c8a96c2f6dbc0981a9fd0cde111d8 (diff)
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>
Diffstat (limited to 'scripts/tracetool')
-rwxr-xr-xscripts/tracetool2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool b/scripts/tracetool
index 412f695863..9912f368d2 100755
--- a/scripts/tracetool
+++ b/scripts/tracetool
@@ -51,7 +51,7 @@ get_args()
{
local args
args=${1#*\(}
- args=${args%\)*}
+ args=${args%%\)*}
echo "$args"
}