Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2023 16:37:16 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: 99bcbef25a7a - main - libpfctl: remove stray debug printf()
Message-ID:  <202312111637.3BBGbGa5005709@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=99bcbef25a7a96f3d4525cc48bf9f0a177194694

commit 99bcbef25a7a96f3d4525cc48bf9f0a177194694
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-12-11 13:35:42 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-12-11 15:53:38 +0000

    libpfctl: remove stray debug printf()
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 lib/libpfctl/libpfctl.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
index 513d2d0f01be..10a63f15e2f8 100644
--- a/lib/libpfctl/libpfctl.c
+++ b/lib/libpfctl/libpfctl.c
@@ -1108,10 +1108,8 @@ pfctl_add_rule(int dev __unused, const struct pfctl_rule *r, const char *anchor,
 
 	seq_id = hdr->nlmsg_seq;
 
-	if (! snl_send_message(&ss, hdr)) {
-		printf("Send failed\n");
+	if (! snl_send_message(&ss, hdr))
 		return (ENXIO);
-	}
 
 	while ((hdr = snl_read_reply_multi(&ss, seq_id, &e)) != NULL) {
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312111637.3BBGbGa5005709>