diff options
author | delphij <delphij@FreeBSD.org> | 2014-03-28 01:13:08 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-03-28 01:13:08 +0000 |
commit | 02202f1ec490f16d60e0bb0e45b35f4a3bfa8d00 (patch) | |
tree | 8fc116a65c88b88c383c0cde6e89b3154a9eba10 /sys/dev/hyperv | |
parent | 6b112fdc4bfd7734459d299a2ea6cbfed4ad8240 (diff) | |
download | FreeBSD-src-02202f1ec490f16d60e0bb0e45b35f4a3bfa8d00.zip FreeBSD-src-02202f1ec490f16d60e0bb0e45b35f4a3bfa8d00.tar.gz |
MFC r259180 (pjd) + r263123:
Hide a few messages under bootverbose.
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r-- | sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c index 61cc69f..1542660 100644 --- a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -182,7 +182,8 @@ netvsc_drv_init(void) static void netvsc_init(void) { - printf("Netvsc initializing... "); + if (bootverbose) + printf("Netvsc initializing... "); /* * XXXKYS: cleanup initialization @@ -190,9 +191,10 @@ netvsc_init(void) if (!cold && !g_netvsc_drv.drv_inited) { g_netvsc_drv.drv_inited = 1; netvsc_drv_init(); - } else { + if (bootverbose) + printf("done!\n"); + } else if (bootverbose) printf("Already initialized!\n"); - } } /* {F8615163-DF3E-46c5-913F-F2D2F965ED0E} */ @@ -213,7 +215,8 @@ netvsc_probe(device_t dev) p = vmbus_get_type(dev); if (!memcmp(p, &g_net_vsc_device_type.data, sizeof(hv_guid))) { device_set_desc(dev, "Synthetic Network Interface"); - printf("Netvsc probe... DONE \n"); + if (bootverbose) + printf("Netvsc probe... DONE \n"); return (0); } @@ -299,7 +302,8 @@ netvsc_detach(device_t dev) { struct hv_device *hv_device = vmbus_get_devctx(dev); - printf("netvsc_detach\n"); + if (bootverbose) + printf("netvsc_detach\n"); /* * XXXKYS: Need to clean up all our @@ -894,7 +898,8 @@ hn_stop(hn_softc_t *sc) ifp = sc->hn_ifp; - printf(" Closing Device ...\n"); + if (bootverbose) + printf(" Closing Device ...\n"); ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); sc->hn_initdone = 0; |