git: 72706300b6e5 - stable/14 - pf: fix debug printf
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Sep 2024 08:24:52 UTC
The branch stable/14 has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=72706300b6e5c33985fd3cd0062e6a07becf8529
commit 72706300b6e5c33985fd3cd0062e6a07becf8529
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-08-28 12:42:33 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-09-18 08:22:38 +0000
pf: fix debug printf
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D46574
(cherry picked from commit db11a048282d268e19510b9f566903ed0509e698)
---
sys/netpfil/pf/pf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index e39abc7e7ad2..f4ee8fb3344a 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -6700,7 +6700,7 @@ pf_icmp_state_lookup(struct pf_state_key_cmp *key, struct pf_pdesc *pd,
PF_IN : PF_OUT) != icmp_dir) {
if (V_pf_status.debug >= PF_DEBUG_MISC) {
printf("pf: icmp type %d in wrong direction (%d): ",
- icmp_dir, pd->dir);
+ ntohs(type), icmp_dir);
pf_print_state(*state);
printf("\n");
}