Author: sephe
Date: Wed Sep 21 06:54:26 2016
New Revision: 306076
URL: https://svnweb.freebsd.org/changeset/base/306076

Log:
  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

Modified:
  head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c

Modified: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c  Wed Sep 21 06:44:32 
2016        (r306075)
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c  Wed Sep 21 06:54:26 
2016        (r306076)
@@ -2358,7 +2358,8 @@ hn_create_rx_data(struct hn_softc *sc, i
        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 
                *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 
                *nsubch = 0;
                return (0);
        }
-       
+
        /*
         * Allocate sub-channels from NVS.
         */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to