Patchwork trace: allow ) in trace output string

login
register
mail settings
Submitter Paolo Bonzini
Date April 19, 2011, 1:29 p.m.
Message ID <1303219767-19841-1-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/91972/
State New
Headers show

Comments

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(-)
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

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"
 }