summaryrefslogtreecommitdiffstats
path: root/sys/dev/xe/if_xe.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-10-01 01:03:02 +0000
committerbrooks <brooks@FreeBSD.org>2002-10-01 01:03:02 +0000
commitb67e739398bc80e790ee16f79e3a1d8c9fe28d01 (patch)
tree8ceea32a04fbfcc07dbd3132ba7849c5a38c6d75 /sys/dev/xe/if_xe.c
parent753cecb0349c6b29ceee5374b9f52f7ab82ae076 (diff)
downloadFreeBSD-src-b67e739398bc80e790ee16f79e3a1d8c9fe28d01.zip
FreeBSD-src-b67e739398bc80e790ee16f79e3a1d8c9fe28d01.tar.gz
Use if_printf(ifp, "foo") instead of printf("xe%d: foo", ifp->it_unit).
Diffstat (limited to 'sys/dev/xe/if_xe.c')
-rw-r--r--sys/dev/xe/if_xe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/xe/if_xe.c b/sys/dev/xe/if_xe.c
index bfb2170..df5262e 100644
--- a/sys/dev/xe/if_xe.c
+++ b/sys/dev/xe/if_xe.c
@@ -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;
OpenPOWER on IntegriCloud