summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-10-21 02:51:56 +0000
committerbrooks <brooks@FreeBSD.org>2002-10-21 02:51:56 +0000
commit3eee68d184a79ab4f055e04fa5d389eba13fbd0a (patch)
treec640d6de602e1b3ca2b56498d05703c11e679daa /sys/netgraph
parentdc5a3ce3a5ca604d278d6fb060f3d0da482c99c7 (diff)
downloadFreeBSD-src-3eee68d184a79ab4f055e04fa5d389eba13fbd0a.zip
FreeBSD-src-3eee68d184a79ab4f055e04fa5d389eba13fbd0a.tar.gz
Use if_printf(ifp, "blah") instead of
printf("%s%d: blah", ifp->if_name, ifp->if_xname).
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c
index bf29dca..5deac9e 100644
--- a/sys/netgraph/ng_iface.c
+++ b/sys/netgraph/ng_iface.c
@@ -471,7 +471,7 @@ ng_iface_output(struct ifnet *ifp, struct mbuf *m,
static void
ng_iface_start(struct ifnet *ifp)
{
- printf("%s%d: %s called?", ifp->if_name, ifp->if_unit, __func__);
+ if_printf(ifp, "%s called?", __func__);
}
/*
OpenPOWER on IntegriCloud