tracing: Add comment to predicate_parse() about "&&" or "||"

As the predicat_parse() code is rather complex, commenting subtleties is
important. The switch case statement should be commented to describe that it
is only looking for two '&' or '|' together, which is why the fall through
to an error is after the check.
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 9399ca21
...@@ -491,6 +491,7 @@ predicate_parse(const char *str, int nr_parens, int nr_preds, ...@@ -491,6 +491,7 @@ predicate_parse(const char *str, int nr_parens, int nr_preds,
break; break;
case '&': case '&':
case '|': case '|':
/* accepting only "&&" or "||" */
if (next[1] == next[0]) { if (next[1] == next[0]) {
ptr++; ptr++;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment