summaryrefslogtreecommitdiffstats
path: root/sys/dev/vx
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-10-01 00:59:40 +0000
committerbrooks <brooks@FreeBSD.org>2002-10-01 00:59:40 +0000
commit753cecb0349c6b29ceee5374b9f52f7ab82ae076 (patch)
treec9d44a8b1beea458764a4668a2d2af8a6c55ae60 /sys/dev/vx
parentee32c456d8fd83397912e0a8d1ea6bfeb19bb737 (diff)
downloadFreeBSD-src-753cecb0349c6b29ceee5374b9f52f7ab82ae076.zip
FreeBSD-src-753cecb0349c6b29ceee5374b9f52f7ab82ae076.tar.gz
Use if_printf(ifp, "blah") instead of printf("vx%d: blah", ifp->if_unit).
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index 317ee11..447982c 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -489,7 +489,7 @@ readcheck:
/* Check if we are stuck and reset [see XXX comment] */
if (vxstatus(sc)) {
if (ifp->if_flags & IFF_DEBUG)
- printf("vx%d: adapter reset\n", ifp->if_unit);
+ if_printf(ifp, "adapter reset\n");
vxreset(sc);
}
}
@@ -937,7 +937,7 @@ vxwatchdog(ifp)
struct vx_softc *sc = ifp->if_softc;
if (ifp->if_flags & IFF_DEBUG)
- printf("vx%d: device timeout\n", ifp->if_unit);
+ if_printf(ifp, "device timeout\n");
ifp->if_flags &= ~IFF_OACTIVE;
vxstart(ifp);
vxintr(sc);
OpenPOWER on IntegriCloud