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: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
9399ca21d2
commit
6c6dbce196
|
@ -491,6 +491,7 @@ predicate_parse(const char *str, int nr_parens, int nr_preds,
|
|||
break;
|
||||
case '&':
|
||||
case '|':
|
||||
/* accepting only "&&" or "||" */
|
||||
if (next[1] == next[0]) {
|
||||
ptr++;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue