From 05e37c7f5bd7d243b2be40b52ada00090ca620f4 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Fri, 14 Nov 2003 15:32:34 +0000 Subject: 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 --- sbin/pfctl/pfctl_parser.c | 11 +++++++---- 1 file 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", -- cgit v1.2.3