diff options
author | mlaier <mlaier@FreeBSD.org> | 2006-05-12 16:15:34 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2006-05-12 16:15:34 +0000 |
commit | ab4970422ab04681b456f141fa3d6f6cf2d0d499 (patch) | |
tree | 7d9e0c87c3b8a3c6dbf5061e6ae197c573f55d3a /sys/contrib/pf | |
parent | ab3eacdf3106cb0b4027a6d928d9555815af0b48 (diff) | |
download | FreeBSD-src-ab4970422ab04681b456f141fa3d6f6cf2d0d499.zip FreeBSD-src-ab4970422ab04681b456f141fa3d6f6cf2d0d499.tar.gz |
Put debugging messages related to inconsistent ticket numbers under misc and
wrap it __FreeBSD__ specific as I couldn't figure out which version of
OpenBSD I got it from.
Reported by: Scott Ullrich
Diffstat (limited to 'sys/contrib/pf')
-rw-r--r-- | sys/contrib/pf/net/pf_ioctl.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c index fdc3b18..149333d 100644 --- a/sys/contrib/pf/net/pf_ioctl.c +++ b/sys/contrib/pf/net/pf_ioctl.c @@ -1479,14 +1479,20 @@ pfioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct proc *p) break; } if (pr->ticket != ruleset->rules[rs_num].inactive.ticket) { - printf("ticket: %d != [%d]%d\n", pr->ticket, - rs_num, ruleset->rules[rs_num].inactive.ticket); +#ifdef __FreeBSD__ + DPFPRINTF(PF_DEBUG_MISC, + ("ticket: %d != [%d]%d\n", pr->ticket, rs_num, + ruleset->rules[rs_num].inactive.ticket)); +#endif error = EBUSY; break; } if (pr->pool_ticket != ticket_pabuf) { - printf("pool_ticket: %d != %d\n", pr->pool_ticket, - ticket_pabuf); +#ifdef __FreeBSD__ + DPFPRINTF(PF_DEBUG_MISC, + ("pool_ticket: %d != %d\n", pr->pool_ticket, + ticket_pabuf)); +#endif error = EBUSY; break; } |