From: Christian Babeux Date: Tue, 23 Oct 2012 19:36:41 +0000 (-0400) Subject: Fix: Handle the unary bitwise negation operator (~) in the XML printer X-Git-Tag: v2.1.0-rc6~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d804b36b2b3e7f6d2bcb8f2ff1ace8b04e2a3cfc;p=lttng-tools.git Fix: Handle the unary bitwise negation operator (~) in the XML printer Acked-by: Mathieu Desnoyers Signed-off-by: Christian Babeux Signed-off-by: David Goulet --- diff --git a/src/lib/lttng-ctl/filter/filter-visitor-xml.c b/src/lib/lttng-ctl/filter/filter-visitor-xml.c index 90a336dd9..1d14f2eab 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,