diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-11-14 15:32:34 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-11-14 15:32:34 +0000 |
commit | 05e37c7f5bd7d243b2be40b52ada00090ca620f4 (patch) | |
tree | 047ce69c94c3f764bcda971a033a7cd6a4ef7fff | |
parent | 99a441cddb6f2025ba6ef77c1e95efdbc6dd53ea (diff) |
in print_status:
-print debuglevel "Loud", this was omitted before (catched by mpech@)
-use the fine PF_DEBUG_* defines instead of magic numbers
ok markus
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 18adf05bfa8..437e028cd28 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.180 2003/11/08 00:45:34 mcbride Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.181 2003/11/14 15:32:33 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -491,15 +491,18 @@ print_status(struct pf_status *s) snprintf(statline, sizeof(statline), "Status: Disabled"); printf("%-44s", statline); switch (s->debug) { - case 0: + case PF_DEBUG_NONE: printf("%15s\n\n", "Debug: None"); break; - case 1: + case PF_DEBUG_URGENT: printf("%15s\n\n", "Debug: Urgent"); break; - case 2: + case PF_DEBUG_MISC: printf("%15s\n\n", "Debug: Misc"); break; + case PF_DEBUG_NOISY: + printf("%15s\n\n", "Debug: Loud"); + break; } if (s->ifname[0] != 0) { printf("Interface Stats for %-16s %5s %16s\n", |