diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-15 23:02:36 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-15 23:02:36 +0000 |
commit | 08b4bf73c6d4d0df8bdd5605f5b8d8f7260fb6f2 (patch) | |
tree | 08d1c3d5abc5b70a23875b61a2822d6ff7ba3534 /sys | |
parent | 3f4c96a9a0b5b5749c4b86502c9e3d30025b4cc7 (diff) | |
download | FreeBSD-src-08b4bf73c6d4d0df8bdd5605f5b8d8f7260fb6f2.zip FreeBSD-src-08b4bf73c6d4d0df8bdd5605f5b8d8f7260fb6f2.tar.gz |
Use if_printf().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_fddisubr.c | 3 | ||||
-rw-r--r-- | sys/net/if_iso88025subr.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index 2230396..cf0caf7 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -520,8 +520,7 @@ fddi_ifattach(ifp, bpf) #endif ifa = ifaddr_byindex(ifp->if_index); if (ifa == NULL) { - printf("%s(): no lladdr for %s%d!\n", __FUNCTION__, - ifp->if_name, ifp->if_unit); + if_printf(ifp, "%s() no lladdr!\n", __func__); return; } diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c index 3593ec6..3548c2b 100644 --- a/sys/net/if_iso88025subr.c +++ b/sys/net/if_iso88025subr.c @@ -117,8 +117,8 @@ iso88025_ifattach(struct ifnet *ifp, int bpf) ifa = ifaddr_byindex(ifp->if_index); if (ifa == 0) { - printf("iso88025_ifattach: no lladdr!\n"); - return; + if_printf(ifp, "%s() no lladdr!\n", __func__); + return; } sdl = (struct sockaddr_dl *)ifa->ifa_addr; |