diff options
author | Patrick McHardy <kaber@trash.net> | 2010-07-06 05:57:20 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-07-06 05:57:20 +0200 |
commit | 653e35bca873414964c9cde0bd98bca3e0bf6692 (patch) | |
tree | ff6e17befb8f45d817a67329742339301c1ce65a /src/parser.y | |
parent | 3a3cd6215d49cb02841b2b20cf8fa9b91de3a831 (diff) |
debug: properly parse debug levels
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/parser.y')
-rw-r--r-- | src/parser.y | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/parser.y b/src/parser.y index 7668cbf2..f70b505d 100644 --- a/src/parser.y +++ b/src/parser.y @@ -101,9 +101,11 @@ static void location_update(struct location *loc, struct location *rhs, int n) %initial-action { location_init(scanner, state, &yylloc); -#if 0 - nft_set_debug(1, scanner); - yydebug = 1; +#ifdef DEBUG + if (debug_level & DEBUG_SCANNER) + nft_set_debug(1, scanner); + if (debug_level & DEBUG_PARSER) + yydebug = 1; #endif } |