mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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:
parent
b0b36e5d2e
commit
1a96dd472c
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ get_args()
|
||||||
{
|
{
|
||||||
local args
|
local args
|
||||||
args=${1#*\(}
|
args=${1#*\(}
|
||||||
args=${args%\)*}
|
args=${args%%\)*}
|
||||||
echo "$args"
|
echo "$args"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue