Hide link up/down/media printfs behind bootverbose
This commit is contained in:
parent
f12ea43d02
commit
6d6b7a18aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137402
@ -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));
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user