summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2016-01-21 14:06:16 +0000
committerbz <bz@FreeBSD.org>2016-01-21 14:06:16 +0000
commit66c4b9df9c23e3661f12035d6ab418199491dc44 (patch)
tree0ee4c709ddebd61166658c97ad2f168e84f5465e /sys/net
parent4f9dd5713d7f3d5073620c95f83182bd62792964 (diff)
downloadFreeBSD-src-66c4b9df9c23e3661f12035d6ab418199491dc44.zip
FreeBSD-src-66c4b9df9c23e3661f12035d6ab418199491dc44.tar.gz
MFC r292603:
If bootverbose is enabled every vnet startup and virtual interface creation will print extra lines on the console. We are generally not interested in this (repeated) information for each VNET. Thus only print it for the default VNET. Virtual interfaces on the base system will remain printing information, but e.g. each loopback in each vnet will no longer cause a "bpf attached" line.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 914dad6..15ab5aa 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -2500,7 +2500,7 @@ bpfattach2(struct ifnet *ifp, u_int dlt, u_int hdrlen, struct bpf_if **driverp)
bp->bif_hdrlen = hdrlen;
- if (bootverbose)
+ if (bootverbose && IS_DEFAULT_VNET(curvnet))
if_printf(ifp, "bpf attached\n");
}
OpenPOWER on IntegriCloud