summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sl.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-10-21 03:35:25 +0000
committerbrooks <brooks@FreeBSD.org>2002-10-21 03:35:25 +0000
commit9cf3a8f1d20d761d98401bf2baf702451037eab9 (patch)
tree021c186af3ff8e8c431fc03229eeee560f54ee0d /sys/net/if_sl.c
parent3605c4bf8d164afb8cc7548f125b71bbd861e1d1 (diff)
downloadFreeBSD-src-9cf3a8f1d20d761d98401bf2baf702451037eab9.zip
FreeBSD-src-9cf3a8f1d20d761d98401bf2baf702451037eab9.tar.gz
Use if_printf(ifp, "blah") instead of printf("sl%d: blah", sc->sc_if.if_unit).
Diffstat (limited to 'sys/net/if_sl.c')
-rw-r--r--sys/net/if_sl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index 7502d7e..2a350f6 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -554,8 +554,7 @@ sloutput(ifp, m, dst, rtp)
* the line protocol to support other address families.
*/
if (dst->sa_family != AF_INET) {
- printf("sl%d: af%d not supported\n", sc->sc_if.if_unit,
- dst->sa_family);
+ if_printf(ifp, "af%d not supported\n", dst->sa_family);
m_freem(m);
sc->sc_if.if_noproto++;
return (EAFNOSUPPORT);
OpenPOWER on IntegriCloud