diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2002-10-01 00:52:58 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2002-10-01 00:52:58 +0000 |
| commit | af98feb19ca817b26a34aa7761305c94fed71425 (patch) | |
| tree | 4c4f83f9f0d7e8a6c1b82691a0570c357fcbfb19 /sys/dev/fe | |
| parent | 38d896912244bc1884e4ad72bfe523d66d162432 (diff) | |
Notes
Diffstat (limited to 'sys/dev/fe')
| -rw-r--r-- | sys/dev/fe/if_fe.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/fe/if_fe.c b/sys/dev/fe/if_fe.c index fb2ad57332f1c..1cbce782cbc64 100644 --- a/sys/dev/fe/if_fe.c +++ b/sys/dev/fe/if_fe.c @@ -991,11 +991,11 @@ fe_watchdog ( struct ifnet *ifp ) struct fe_softc *sc = (struct fe_softc *)ifp; /* A "debug" message. */ - printf("fe%d: transmission timeout (%d+%d)%s\n", - ifp->if_unit, sc->txb_sched, sc->txb_count, + if_printf(ifp, "transmission timeout (%d+%d)%s\n", + sc->txb_sched, sc->txb_count, (ifp->if_flags & IFF_UP) ? "" : " when down"); if (sc->sc_if.if_opackets == 0 && sc->sc_if.if_ipackets == 0) - printf("fe%d: wrong IRQ setting in config?\n", ifp->if_unit); + if_printf(ifp, "wrong IRQ setting in config?\n"); fe_reset(sc); } @@ -1179,8 +1179,8 @@ fe_start (struct ifnet *ifp) * txb_count is zero if and only if txb_free is same * as txb_size (which represents whole buffer.) */ - printf("fe%d: inconsistent txb variables (%d, %d)\n", - sc->sc_unit, sc->txb_count, sc->txb_free); + if_printf(ifp, "inconsistent txb variables (%d, %d)\n", + sc->txb_count, sc->txb_free); /* * So, what should I do, then? * @@ -1205,8 +1205,8 @@ fe_start (struct ifnet *ifp) * transmitter - should never happen at this point. */ if ((sc->txb_count > 0) && (sc->txb_sched == 0)) { - printf("fe%d: transmitter idle with %d buffered packets\n", - sc->sc_unit, sc->txb_count); + if_printf(ifp, "transmitter idle with %d buffered packets\n", + sc->txb_count); fe_xmit(sc); } |
