aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2002-10-01 00:55:22 +0000
committerBrooks Davis <brooks@FreeBSD.org>2002-10-01 00:55:22 +0000
commitc10b63ba8d78669973f2b13fc96ed8f1d114a55f (patch)
tree5968a87c94ee78c722cb01344a403ec91f6b0560 /sys
parentb1a667509bb5add51eb28fef126f5edca0c2f582 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sbni/if_sbni.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c
index d95bb4574bb97..3554cc687bc5d 100644
--- a/sys/dev/sbni/if_sbni.c
+++ b/sys/dev/sbni/if_sbni.c
@@ -246,8 +246,8 @@ sbni_attach(struct sbni_softc *sc, int unit, struct sbni_flags flags)
}
/* device attach does transition from UNCONFIGURED to IDLE state */
- printf("%s%d: speed %ld, address %6D, rxl ", ifp->if_name,
- ifp->if_unit, ifp->if_baudrate, sc->arpcom.ac_enaddr, ":");
+ if_printf(ifp, "speed %ld, address %6D, rxl ",
+ ifp->if_baudrate, sc->arpcom.ac_enaddr, ":");
if (sc->delta_rxl)
printf("auto\n");
else
@@ -817,8 +817,7 @@ get_rx_buf(struct sbni_softc *sc)
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL) {
- printf("sbni%d: cannot allocate header mbuf\n",
- sc->arpcom.ac_if.if_unit);
+ if_printf(&sc->arpcom.ac_if, "cannot allocate header mbuf\n");
return (0);
}