diff options
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 9d331fc..710c1e7 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -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; } |