1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Use if_printf(ifp, "foo") instead of printf("xe%d: foo", ifp->it_unit).

This commit is contained in:
Brooks Davis 2002-10-01 01:03:02 +00:00
parent deffb46b90
commit 13d4f45b18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104260

View File

@ -795,7 +795,7 @@ xe_media_change(struct ifnet *ifp) {
struct xe_softc *scp = ifp->if_softc;
#ifdef XE_DEBUG
printf("xe%d: media_change\n", ifp->if_unit);
if_printf(ifp, "media_change\n");
#endif
if (IFM_TYPE(scp->ifm->ifm_media) != IFM_ETHER)
@ -821,7 +821,7 @@ static void
xe_media_status(struct ifnet *ifp, struct ifmediareq *mrp) {
#ifdef XE_DEBUG
printf("xe%d: media_status\n", ifp->if_unit);
if_printf(ifp, "media_status\n");
#endif
mrp->ifm_active = ((struct xe_softc *)ifp->if_softc)->media;