summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-08 19:21:57 +0000
committerphk <phk@FreeBSD.org>2004-11-08 19:21:57 +0000
commit394b6c09a1a7af80af3bddfc451a63716cf8538b (patch)
tree097ab25d0d4c36c33457e33d2f1c1454df97c4ea /sys
parent4b9b2c36ee61b45e170235c8d0691a02e79f2e6c (diff)
downloadFreeBSD-src-394b6c09a1a7af80af3bddfc451a63716cf8538b.zip
FreeBSD-src-394b6c09a1a7af80af3bddfc451a63716cf8538b.tar.gz
Hide link up/down/media printfs behind bootverbose
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/de/if_de.c3
-rw-r--r--sys/dev/lge/if_lge.c5
-rw-r--r--sys/dev/nge/if_nge.c7
-rw-r--r--sys/pci/if_de.c3
4 files changed, 11 insertions, 7 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index bbbe2a3..afeacae 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -3262,7 +3262,8 @@ tulip_reset(
printf("%s: tulip_reset: additional reset needed?!?\n",
sc->tulip_xname);
#endif
- tulip_media_print(sc);
+ if (bootverbose)
+ tulip_media_print(sc);
if (sc->tulip_features & TULIP_HAVE_DUALSENSE)
TULIP_CSR_WRITE(sc, csr_sia_status, TULIP_CSR_READ(sc, csr_sia_status));
diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c
index f26d452..12912f2 100644
--- a/sys/dev/lge/if_lge.c
+++ b/sys/dev/lge/if_lge.c
@@ -1051,8 +1051,9 @@ lge_tick(xsc)
if (mii->mii_media_status & IFM_ACTIVE &&
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
sc->lge_link++;
- if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_SX||
- IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T)
+ if (bootverbose &&
+ (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_SX||
+ IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T))
printf("lge%d: gigabit link up\n",
sc->lge_unit);
if (ifp->if_snd.ifq_head != NULL)
diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c
index 151321c..070e177 100644
--- a/sys/dev/nge/if_nge.c
+++ b/sys/dev/nge/if_nge.c
@@ -1327,8 +1327,9 @@ nge_tick_locked(sc)
if (!sc->nge_link) {
if (CSR_READ_4(sc, NGE_TBI_BMSR)
& NGE_TBIBMSR_ANEG_DONE) {
- printf("nge%d: gigabit link up\n",
- sc->nge_unit);
+ if (bootverbose)
+ printf("nge%d: gigabit link up\n",
+ sc->nge_unit);
nge_miibus_statchg(sc->nge_miibus);
sc->nge_link++;
if (ifp->if_snd.ifq_head != NULL)
@@ -1344,7 +1345,7 @@ nge_tick_locked(sc)
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
sc->nge_link++;
if (IFM_SUBTYPE(mii->mii_media_active)
- == IFM_1000_T)
+ == IFM_1000_T && bootverbose)
printf("nge%d: gigabit link up\n",
sc->nge_unit);
if (ifp->if_snd.ifq_head != NULL)
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c
index bbbe2a3..afeacae 100644
--- a/sys/pci/if_de.c
+++ b/sys/pci/if_de.c
@@ -3262,7 +3262,8 @@ tulip_reset(
printf("%s: tulip_reset: additional reset needed?!?\n",
sc->tulip_xname);
#endif
- tulip_media_print(sc);
+ if (bootverbose)
+ tulip_media_print(sc);
if (sc->tulip_features & TULIP_HAVE_DUALSENSE)
TULIP_CSR_WRITE(sc, csr_sia_status, TULIP_CSR_READ(sc, csr_sia_status));
OpenPOWER on IntegriCloud