From 753cecb0349c6b29ceee5374b9f52f7ab82ae076 Mon Sep 17 00:00:00 2001 From: brooks Date: Tue, 1 Oct 2002 00:59:40 +0000 Subject: Use if_printf(ifp, "blah") instead of printf("vx%d: blah", ifp->if_unit). --- sys/dev/vx/if_vx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/vx') 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); -- cgit v1.1