git: db11a048282d - main - pf: fix debug printf

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Wed, 11 Sep 2024 11:18:29 UTC
The branch main has been updated by kp:

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

commit db11a048282d268e19510b9f566903ed0509e698
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-08-28 12:42:33 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-09-11 11:17:49 +0000

    pf: fix debug printf
    
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D46574
---
 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 1535843d81b1..2066cfbeccff 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -6935,7 +6935,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");
 		}