git: 294dc0464c3b - main - pf: only log that we're not creating a tag in verbose mode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Oct 2026 07:16:14 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=294dc0464c3b68e8308d8c6ac93cf6b31e433a00
commit 294dc0464c3b68e8308d8c6ac93cf6b31e433a00
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-10-13 14:31:01 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-10-16 07:15:34 +0000
pf: only log that we're not creating a tag in verbose mode
While here get rid of the aesthetically unpleasing '== false' construct.
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/netpfil/pf/pf_ioctl.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c
index 174582776fa7..8685a877a00f 100644
--- a/sys/netpfil/pf/pf_ioctl.c
+++ b/sys/netpfil/pf/pf_ioctl.c
@@ -718,8 +718,9 @@ tagname2tag(struct pf_tagset *ts, const char *tagname, bool add_new)
* require additional configuration. If they are missing on the target
* system we just ignore them
*/
- if (add_new == false) {
- printf("%s: Not creating a new tag\n", __func__);
+ if (! add_new) {
+ DPFPRINTF(PF_DEBUG_MISC, "%s: Not creating a new tag\n",
+ __func__);
PF_TAGS_RUNLOCK();
return (0);
}