The branch stable/13 has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ebb3a73d0669bd3a7ab91d3c2fa43b8547c205c7

commit ebb3a73d0669bd3a7ab91d3c2fa43b8547c205c7
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2024-08-28 12:42:33 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2024-09-18 08:22:45 +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 b95ef59a3250..f940950a2479 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -6108,7 +6108,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");
                }

Reply via email to