diff options
author | bz <bz@FreeBSD.org> | 2015-12-22 15:00:04 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2015-12-22 15:00:04 +0000 |
commit | a240c87b63366943b44b4b1c5879652f060b0ad6 (patch) | |
tree | 08e0b6605117548b387c52270da758ebeac35545 /sys/net | |
parent | dd1fad44ccfad5a3f15427bcecc129ea6a6155f7 (diff) | |
download | FreeBSD-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.c | 2 |
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"); } |