[lttng-dev] [PATCH lttng-tools] Fix: Handle the unary bitwise negation operator (~) in the XML printer

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue Oct 23 15:57:49 EDT 2012


* Christian Babeux (christian.babeux at efficios.com) wrote:
> 
> Signed-off-by: Christian Babeux <christian.babeux at efficios.com>

Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

> ---
>  src/lib/lttng-ctl/filter/filter-visitor-xml.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/lib/lttng-ctl/filter/filter-visitor-xml.c b/src/lib/lttng-ctl/filter/filter-visitor-xml.c
> index 90a336d..1d14f2e 100644
> --- a/src/lib/lttng-ctl/filter/filter-visitor-xml.c
> +++ b/src/lib/lttng-ctl/filter/filter-visitor-xml.c
> @@ -235,6 +235,9 @@ int recursive_visit_print(struct filter_node *node, FILE *stream, int indent)
>  		case AST_UNARY_NOT:
>  			fprintf(stream, "\"!\"");
>  			break;
> +		case AST_UNARY_BIN_NOT:
> +			fprintf(stream, "\"~\"");
> +			break;
>  		}
>  		fprintf(stream, ">\n");
>  		ret = recursive_visit_print(node->u.unary_op.child,
> -- 
> 1.7.12.2
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list