diff options
author | brooks <brooks@FreeBSD.org> | 2002-10-21 03:40:30 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2002-10-21 03:40:30 +0000 |
commit | 3e43beb8f3f6e575656036250eaa8a25765f7d86 (patch) | |
tree | 2c28fe0f89085dfc5f8f455e259657332accbd52 /sys/net/if_vlan.c | |
parent | 9cf3a8f1d20d761d98401bf2baf702451037eab9 (diff) | |
download | FreeBSD-src-3e43beb8f3f6e575656036250eaa8a25765f7d86.zip FreeBSD-src-3e43beb8f3f6e575656036250eaa8a25765f7d86.tar.gz |
Use if_printf(ifp, "blah") instead of printf("vlan%d: blah", ifp->if_unit).
Diffstat (limited to 'sys/net/if_vlan.c')
-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; } |