diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-09-02 17:05:04 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-09-02 17:05:04 -0400 |
commit | 84064a0bccf8cbabd54b76afee890df880c5d581 (patch) | |
tree | dc2f9a99cf197afc87a4e2da4582969072c2c688 /parse.c | |
parent | 2741f580ffb6a05f52f0e2b05fa77ff3a15d967f (diff) | |
download | bfs-84064a0bccf8cbabd54b76afee890df880c5d581.tar.xz |
Implement -D search
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -755,6 +755,7 @@ static struct expr *parse_debug(struct parser_state *state, int arg1, int arg2) printf(" exec: Print executed command details.\n"); printf(" opt: Print optimization details.\n"); printf(" rates: Print predicate success rates.\n"); + printf(" search: Trace the filesystem traversal.\n"); printf(" stat: Trace all stat() calls.\n"); printf(" tree: Print the parse tree.\n"); @@ -768,6 +769,8 @@ static struct expr *parse_debug(struct parser_state *state, int arg1, int arg2) cmdline->debug |= DEBUG_OPT; } else if (strcmp(flag, "rates") == 0) { cmdline->debug |= DEBUG_RATES; + } else if (strcmp(flag, "search") == 0) { + cmdline->debug |= DEBUG_SEARCH; } else if (strcmp(flag, "stat") == 0) { cmdline->debug |= DEBUG_STAT; } else if (strcmp(flag, "tree") == 0) { |