Use if_printf(ifp, "blah") instead of printf("vlan%d: blah", ifp->if_unit).
This commit is contained in:
parent
9cf3a8f1d2
commit
3e43beb8f3
@ -312,7 +312,7 @@ vlan_start(struct ifnet *ifp)
|
||||
} else {
|
||||
M_PREPEND(m, EVL_ENCAPLEN, M_DONTWAIT);
|
||||
if (m == NULL) {
|
||||
printf("vlan%d: M_PREPEND failed", ifp->if_unit);
|
||||
if_printf(ifp, "M_PREPEND failed");
|
||||
ifp->if_ierrors++;
|
||||
continue;
|
||||
}
|
||||
@ -320,7 +320,7 @@ vlan_start(struct ifnet *ifp)
|
||||
|
||||
m = m_pullup(m, ETHER_HDR_LEN + EVL_ENCAPLEN);
|
||||
if (m == NULL) {
|
||||
printf("vlan%d: m_pullup failed", ifp->if_unit);
|
||||
if_printf(ifp, "m_pullup failed");
|
||||
ifp->if_ierrors++;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user