Use if_printf().
This commit is contained in:
parent
3f4c96a9a0
commit
08b4bf73c6
@ -520,8 +520,7 @@ fddi_ifattach(ifp, bpf)
|
|||||||
#endif
|
#endif
|
||||||
ifa = ifaddr_byindex(ifp->if_index);
|
ifa = ifaddr_byindex(ifp->if_index);
|
||||||
if (ifa == NULL) {
|
if (ifa == NULL) {
|
||||||
printf("%s(): no lladdr for %s%d!\n", __FUNCTION__,
|
if_printf(ifp, "%s() no lladdr!\n", __func__);
|
||||||
ifp->if_name, ifp->if_unit);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,8 +117,8 @@ iso88025_ifattach(struct ifnet *ifp, int bpf)
|
|||||||
|
|
||||||
ifa = ifaddr_byindex(ifp->if_index);
|
ifa = ifaddr_byindex(ifp->if_index);
|
||||||
if (ifa == 0) {
|
if (ifa == 0) {
|
||||||
printf("iso88025_ifattach: no lladdr!\n");
|
if_printf(ifp, "%s() no lladdr!\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sdl = (struct sockaddr_dl *)ifa->ifa_addr;
|
sdl = (struct sockaddr_dl *)ifa->ifa_addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user