diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-05-14 23:35:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-05-14 23:35:32 +0000 |
commit | affc92e2d4ec8eec31b765e6db362cd263180fa7 (patch) | |
tree | 46ece1ff47348adfcba9b75de53cac9a7ca3f3ff /sys/dev/sbus | |
parent | 1e711385f7a9a43b729d1874f74fcdcb5a50787d (diff) |
Silence the "lost carrier on FOO port" messages when the port has been set
in stone with "ifconfig le0 media foo". Inspired by previous am7990.c change.
ok todd@ jason@
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r-- | sys/dev/sbus/if_le_ledma.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/sbus/if_le_ledma.c b/sys/dev/sbus/if_le_ledma.c index 598bf78490a..b0168411f2d 100644 --- a/sys/dev/sbus/if_le_ledma.c +++ b/sys/dev/sbus/if_le_ledma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_le_ledma.c,v 1.7 2003/02/17 01:29:21 henric Exp $ */ +/* $OpenBSD: if_le_ledma.c,v 1.8 2003/05/14 23:35:31 miod Exp $ */ /* $NetBSD: if_le_ledma.c,v 1.14 2001/05/30 11:46:35 mrg Exp $ */ /*- @@ -297,26 +297,24 @@ lenocarrier(sc) * Check if the user has requested a certain cable type, and * if so, honor that request. */ - printf("%s: lost carrier on ", sc->sc_dev.dv_xname); if (L64854_GCSR(lesc->sc_dma) & E_TP_AUI) { - printf("UTP port"); switch (IFM_SUBTYPE(sc->sc_ifmedia.ifm_media)) { case IFM_10_5: case IFM_AUTO: - printf(", switching to AUI port"); + printf("%s: lost carrier on UTP port" + ", switching to AUI port\n", sc->sc_dev.dv_xname); lesetaui(sc); } } else { - printf("AUI port"); switch (IFM_SUBTYPE(sc->sc_ifmedia.ifm_media)) { case IFM_10_T: case IFM_AUTO: - printf(", switching to UTP port"); + printf("%s: lost carrier on AUI port" + ", switching to UTP port\n", sc->sc_dev.dv_xname); lesetutp(sc); } } - printf("\n"); } int |