summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2015-12-22 15:00:04 +0000
committerbz <bz@FreeBSD.org>2015-12-22 15:00:04 +0000
commita240c87b63366943b44b4b1c5879652f060b0ad6 (patch)
tree08e0b6605117548b387c52270da758ebeac35545 /sys/net
parentdd1fad44ccfad5a3f15427bcecc129ea6a6155f7 (diff)
downloadFreeBSD-src-a240c87b63366943b44b4b1c5879652f060b0ad6.zip
FreeBSD-src-a240c87b63366943b44b4b1c5879652f060b0ad6.tar.gz
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. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: gnn Differential Revision: https://reviews.freebsd.org/D4531
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 985208b..37edbe8 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -2551,7 +2551,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