X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Ffilter%2Ffilter-visitor-ir-validate-string.c;fp=src%2Flib%2Flttng-ctl%2Ffilter%2Ffilter-visitor-ir-validate-string.c;h=5c0a58efbe01ad625f04b4180744238fbf2b1a05;hp=30b0b5dc33f4057b149984ea450460c9ccfc2c73;hb=9f449915b9d44ce3c9c9255f5d491a62545fee25;hpb=9c55c24114a3ba83a423690b0e86d64c9b2fb027 diff --git a/src/lib/lttng-ctl/filter/filter-visitor-ir-validate-string.c b/src/lib/lttng-ctl/filter/filter-visitor-ir-validate-string.c index 30b0b5dc3..5c0a58efb 100644 --- a/src/lib/lttng-ctl/filter/filter-visitor-ir-validate-string.c +++ b/src/lib/lttng-ctl/filter/filter-visitor-ir-validate-string.c @@ -77,13 +77,9 @@ int validate_string(struct ir_op *node) if (node->data_type == IR_DATA_STRING) { const char *str; - assert(node->u.load.u.string); - str = node->u.load.u.string; + assert(node->u.load.u.string.value); + str = node->u.load.u.string.value; - /* - * Make sure that if a non-escaped wildcard is - * present, it is the last character of the string. - */ for (;;) { enum parse_char_result res; @@ -95,20 +91,6 @@ int validate_string(struct ir_op *node) str++; switch (res) { - case PARSE_CHAR_WILDCARD: - { - if (*str) { - /* - * Found a wildcard followed by non-null - * character; unsupported. - */ - ret = -EINVAL; - fprintf(stderr, - "Wildcards may only be used as the last character of a string in a filter.\n"); - goto end_load; - } - break; - } case PARSE_CHAR_UNKNOWN: ret = -EINVAL; fprintf(stderr,