diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2010-01-19 05:59:21 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2010-01-19 05:59:21 +0000 |
commit | 8034c4f24a2da5be405117f9a2887d14852c70c3 (patch) | |
tree | 117f019d348f60ccd096e6aa375933066ba1a1a2 | |
parent | 9bc24a139949cef6c2b5dd27a2ee5be0f675d5ed (diff) |
Unbreak tree - I missed systat's use of the old pf debug levels.
pointed out by toby
-rw-r--r-- | usr.bin/systat/pf.c | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/usr.bin/systat/pf.c b/usr.bin/systat/pf.c index 1a2e0f9fb9e..5f7204791b7 100644 --- a/usr.bin/systat/pf.c +++ b/usr.bin/systat/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.1 2008/06/12 22:26:01 canacar Exp $ */ +/* $OpenBSD: pf.c,v 1.2 2010/01/19 05:59:20 mcbride Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar <canacar@openbsd.org> * @@ -39,6 +39,7 @@ #include <err.h> #include <ifaddrs.h> #include <unistd.h> +#include <syslog.h> #include <net/pfvar.h> #include "pfctl_parser.h" #include "engine.h" @@ -245,17 +246,29 @@ print_pf(void) ADD_LINE_A("pf", "Since", tm); switch (s->debug) { - case PF_DEBUG_NONE: - debug = "None"; + case LOG_EMERG: + debug = "emerg"; break; - case PF_DEBUG_URGENT: - debug = "Urgent"; + case LOG_ALERT: + debug = "alert"; break; - case PF_DEBUG_MISC: - debug = "Misc"; + case LOG_CRIT: + debug = "crit"; break; - case PF_DEBUG_NOISY: - debug = "Loud"; + case LOG_ERR: + debug = "err"; + break; + case LOG_WARNING: + debug = "warning"; + break; + case LOG_NOTICE: + debug = "notice"; + break; + case LOG_INFO: + debug = "info"; + break; + case LOG_DEBUG: + debug = "debug"; break; } ADD_LINE_S("pf", "Debug", debug); |