aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorSepherosa Ziehau <sephe@FreeBSD.org>2016-09-21 06:54:26 +0000
committerSepherosa Ziehau <sephe@FreeBSD.org>2016-09-21 06:54:26 +0000
commitb1699fab98f04879cde504846d3720e3649065f1 (patch)
tree1b72c93fa52fb747f01067a85a948cfeceaf14ac /sys/dev
parent62b939ebfbc68820c817e7d3561ff78631ba39d0 (diff)
downloadsrc-b1699fab98f04879cde504846d3720e3649065f1.tar.gz
src-b1699fab98f04879cde504846d3720e3649065f1.zip
hyperv/hn: Put debug messages under bootverbose
While I'm here, strip blank line. MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7963
Notes
Notes: svn path=/head/; revision=306076
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
index 189008bed7cb..2c08a2d22158 100644
--- a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -2358,7 +2358,8 @@ hn_create_rx_data(struct hn_softc *sc, int ring_cnt)
lroent_cnt = hn_lro_entry_count;
if (lroent_cnt < TCP_LRO_ENTRIES)
lroent_cnt = TCP_LRO_ENTRIES;
- device_printf(dev, "LRO: entry count %d\n", lroent_cnt);
+ if (bootverbose)
+ device_printf(dev, "LRO: entry count %d\n", lroent_cnt);
#endif
#endif /* INET || INET6 */
@@ -3329,8 +3330,10 @@ hn_synth_alloc_subchans(struct hn_softc *sc, int *nsubch)
*nsubch = 0;
return (0);
}
- if_printf(sc->hn_ifp, "RX rings offered %u, requested %d\n",
- rxr_cnt, nchan);
+ if (bootverbose) {
+ if_printf(sc->hn_ifp, "RX rings offered %u, requested %d\n",
+ rxr_cnt, nchan);
+ }
if (nchan > rxr_cnt)
nchan = rxr_cnt;
@@ -3339,7 +3342,7 @@ hn_synth_alloc_subchans(struct hn_softc *sc, int *nsubch)
*nsubch = 0;
return (0);
}
-
+
/*
* Allocate sub-channels from NVS.
*/