Date: Mon, 11 Jan 2021 22:32:14 GMT From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 86b653ed7eed - main - pf: quiet debugging printfs Message-ID: <202101112232.10BMWEat069519@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=86b653ed7eedb0d6cc3315bea132f847f748066d commit 86b653ed7eedb0d6cc3315bea132f847f748066d Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2021-01-11 18:28:01 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2021-01-11 21:30:44 +0000 pf: quiet debugging printfs Only log these when debugging output is enabled. --- sys/netpfil/pf/pf_ruleset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netpfil/pf/pf_ruleset.c b/sys/netpfil/pf/pf_ruleset.c index 31a4ed879937..0cc0c357d59d 100644 --- a/sys/netpfil/pf/pf_ruleset.c +++ b/sys/netpfil/pf/pf_ruleset.c @@ -306,7 +306,7 @@ pf_kanchor_setup(struct pf_krule *r, const struct pf_kruleset *s, strlcpy(path, s->anchor->path, MAXPATHLEN); while (name[0] == '.' && name[1] == '.' && name[2] == '/') { if (!path[0]) { - printf("pf_anchor_setup: .. beyond root\n"); + DPFPRINTF("pf_anchor_setup: .. beyond root\n"); rs_free(path); return (1); } @@ -328,7 +328,7 @@ pf_kanchor_setup(struct pf_krule *r, const struct pf_kruleset *s, ruleset = pf_find_or_create_kruleset(path); rs_free(path); if (ruleset == NULL || ruleset->anchor == NULL) { - printf("pf_anchor_setup: ruleset\n"); + DPFPRINTF("pf_anchor_setup: ruleset\n"); return (1); } r->anchor = ruleset->anchor;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101112232.10BMWEat069519>