Use if_printf(ifp, "blah") instead of printf("vx%d: blah", ifp->if_unit).
This commit is contained in:
parent
ee32c456d8
commit
753cecb034
@ -489,7 +489,7 @@ readcheck:
|
|||||||
/* Check if we are stuck and reset [see XXX comment] */
|
/* Check if we are stuck and reset [see XXX comment] */
|
||||||
if (vxstatus(sc)) {
|
if (vxstatus(sc)) {
|
||||||
if (ifp->if_flags & IFF_DEBUG)
|
if (ifp->if_flags & IFF_DEBUG)
|
||||||
printf("vx%d: adapter reset\n", ifp->if_unit);
|
if_printf(ifp, "adapter reset\n");
|
||||||
vxreset(sc);
|
vxreset(sc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -937,7 +937,7 @@ vxwatchdog(ifp)
|
|||||||
struct vx_softc *sc = ifp->if_softc;
|
struct vx_softc *sc = ifp->if_softc;
|
||||||
|
|
||||||
if (ifp->if_flags & IFF_DEBUG)
|
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;
|
ifp->if_flags &= ~IFF_OACTIVE;
|
||||||
vxstart(ifp);
|
vxstart(ifp);
|
||||||
vxintr(sc);
|
vxintr(sc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user