mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Use if_printf(ifp, "blah") instead of printf("vlan%d: blah", ifp->if_unit).
This commit is contained in:
parent
63dd8be938
commit
28a1a7c6cc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105602
@ -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…
Reference in New Issue
Block a user