diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index 2230396403c7..cf0caf700cb6 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 3593ec63b453..3548c2b6b911 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;