trace: allow ) in trace output string

Submitted by Paolo Bonzini on April 19, 2011, 1:29 p.m.

Details

Message ID 1303219767-19841-1-git-send-email-pbonzini@redhat.com
State New
Headers show

Commit Message

Paolo Bonzini April 19, 2011, 1:29 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 scripts/tracetool |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Stefan Hajnoczi April 19, 2011, 1:57 p.m.
On Tue, Apr 19, 2011 at 2:29 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  scripts/tracetool |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>

I have merged it into my tracing tree and will send a pull request this week.

Stefan

Patch hide | download patch | download mbox

diff --git a/scripts/tracetool b/scripts/tracetool
index 412f695..9912f36 100755
--- a/scripts/tracetool
+++ b/scripts/tracetool
@@ -51,7 +51,7 @@  get_args()
 {
     local args
     args=${1#*\(}
-    args=${args%\)*}
+    args=${args%%\)*}
     echo "$args"
 }