diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-19 13:52:19 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-19 13:52:19 +0000 |
commit | 1793a6f88f217ee2da1b86c6d0b58f5166b9a111 (patch) | |
tree | c5a2bf9255513814d172f722a706b2f0510594a4 /sys/net | |
parent | 52e4ffaed3d56ca4799892315db88686bd874a54 (diff) |
format string fixes
inspired by Thorsten Glaser via fries@
ok theo
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 146b16fee96..7a2c88f0e27 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.304 2003/01/18 06:31:59 mcbride Exp $ */ +/* $OpenBSD: pf.c,v 1.305 2003/01/19 13:52:18 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -720,9 +720,9 @@ pf_print_state(struct pf_state *s) pf_print_host(&s->gwy.addr, s->gwy.port, s->af); printf(" "); pf_print_host(&s->ext.addr, s->ext.port, s->af); - printf(" [lo=%lu high=%lu win=%u modulator=%u]", s->src.seqlo, + printf(" [lo=%u high=%u win=%u modulator=%u]", s->src.seqlo, s->src.seqhi, s->src.max_win, s->src.seqdiff); - printf(" [lo=%lu high=%lu win=%u modulator=%u]", s->dst.seqlo, + printf(" [lo=%u high=%u win=%u modulator=%u]", s->dst.seqlo, s->dst.seqhi, s->dst.max_win, s->dst.seqdiff); printf(" %u:%u", s->src.state, s->dst.state); } @@ -2964,7 +2964,7 @@ pf_test_state_tcp(struct pf_state **state, int direction, struct ifnet *ifp, printf("pf: loose state match: "); pf_print_state(*state); pf_print_flags(th->th_flags); - printf(" seq=%lu ack=%lu len=%u ackskew=%d pkts=%d\n", + printf(" seq=%u ack=%u len=%u ackskew=%d pkts=%d\n", seq, ack, pd->p_len, ackskew, (*state)->packets); } @@ -2999,7 +2999,7 @@ pf_test_state_tcp(struct pf_state **state, int direction, struct ifnet *ifp, printf("pf: BAD state: "); pf_print_state(*state); pf_print_flags(th->th_flags); - printf(" seq=%lu ack=%lu len=%u ackskew=%d pkts=%d " + printf(" seq=%u ack=%u len=%u ackskew=%d pkts=%d " "dir=%s,%s\n", seq, ack, pd->p_len, ackskew, ++(*state)->packets, direction == PF_IN ? "in" : "out", @@ -3364,7 +3364,7 @@ pf_test_state_icmp(struct pf_state **state, int direction, struct ifnet *ifp, if (pf_status.debug >= PF_DEBUG_MISC) { printf("pf: BAD ICMP state: "); pf_print_state(*state); - printf(" seq=%lu\n", seq); + printf(" seq=%u\n", seq); } return (PF_DROP); } |