summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-02-09 16:21:01 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-02-09 16:21:01 +0000
commit329a3c21094f6145cab176e175eeaa8f48d42b99 (patch)
tree7a60c1e82078ac7a92c6e2af50828447a48d0e3b
parent51477fac0e196083cf14a2f50e05b784e104aaf3 (diff)
Slightly less noisy debug printf from pf_map_addr(), ok mcbride@
-rw-r--r--sys/net/pf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 5bf7fbc55a3..e12565ff043 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.316 2003/02/05 13:07:20 mcbride Exp $ */
+/* $OpenBSD: pf.c,v 1.317 2003/02/09 16:21:00 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1529,7 +1529,8 @@ pf_map_addr(u_int8_t af, struct pf_pool *rpool, struct pf_addr *saddr,
break;
}
- if (pf_status.debug >= PF_DEBUG_MISC) {
+ if (pf_status.debug >= PF_DEBUG_MISC &&
+ (rpool->opts & PF_POOL_TYPEMASK) != PF_POOL_NONE) {
printf("pf_map_addr: selected address: ");
pf_print_host(naddr, 0, af);
printf("\n");