summaryrefslogtreecommitdiffstats
path: root/sys/dev/sbni
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-10-01 00:55:22 +0000
committerbrooks <brooks@FreeBSD.org>2002-10-01 00:55:22 +0000
commitb8c0848b1518c48f2bc58b676b9f0d54186befd2 (patch)
tree5968a87c94ee78c722cb01344a403ec91f6b0560 /sys/dev/sbni
parenta04b479aee620ae0c7e69d0beaea6b55631b3dc6 (diff)
downloadFreeBSD-src-b8c0848b1518c48f2bc58b676b9f0d54186befd2.zip
FreeBSD-src-b8c0848b1518c48f2bc58b676b9f0d54186befd2.tar.gz
Use if_printf() instead of printf() to print "sbni#: blah".
Diffstat (limited to 'sys/dev/sbni')
-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 d95bb45..3554cc6 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);
}
OpenPOWER on IntegriCloud