diff options
author | phk <phk@FreeBSD.org> | 2004-11-08 19:27:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-11-08 19:27:00 +0000 |
commit | f1183d1c292a04b1a61dc2332eedea76e5edd357 (patch) | |
tree | 4a5375d10b1c607176cf9990a0ca0d843cdb7a39 /sys/dev/bge | |
parent | 394b6c09a1a7af80af3bddfc451a63716cf8538b (diff) | |
download | FreeBSD-src-f1183d1c292a04b1a61dc2332eedea76e5edd357.zip FreeBSD-src-f1183d1c292a04b1a61dc2332eedea76e5edd357.tar.gz |
Hide link up/down/media printfs behind bootverbose
Diffstat (limited to 'sys/dev/bge')
-rw-r--r-- | sys/dev/bge/if_bge.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 46e477e..b683793 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -3022,7 +3022,9 @@ bge_tick_locked(sc) BGE_CLRBIT(sc, BGE_MAC_MODE, BGE_MACMODE_TBI_SEND_CFGS); CSR_WRITE_4(sc, BGE_MAC_STS, 0xFFFFFFFF); - printf("bge%d: gigabit link up\n", sc->bge_unit); + if (bootverbose) + printf("bge%d: gigabit link up\n", + sc->bge_unit); if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd)) bge_start_locked(ifp); } @@ -3035,10 +3037,10 @@ bge_tick_locked(sc) if (!sc->bge_link && mii->mii_media_status & IFM_ACTIVE && IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) { sc->bge_link++; - if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T || - IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_SX) - printf("bge%d: gigabit link up\n", - sc->bge_unit); + if ((IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T || + IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_SX) && + bootverbose) + printf("bge%d: gigabit link up\n", sc->bge_unit); if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd)) bge_start_locked(ifp); } |