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
					
				| 
						 | 
				
			
			@ -51,7 +51,7 @@ get_args()
 | 
			
		|||
{
 | 
			
		||||
    local args
 | 
			
		||||
    args=${1#*\(}
 | 
			
		||||
    args=${args%\)*}
 | 
			
		||||
    args=${args%%\)*}
 | 
			
		||||
    echo "$args"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue