mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 12:19:30 +00:00
Use if_printf(ifp, "blah") instead of printf("sl%d: blah", sc->sc_if.if_unit).
This commit is contained in:
parent
40145a58da
commit
63dd8be938
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105601
@ -554,8 +554,7 @@ sloutput(ifp, m, dst, rtp)
|
||||
* the line protocol to support other address families.
|
||||
*/
|
||||
if (dst->sa_family != AF_INET) {
|
||||
printf("sl%d: af%d not supported\n", sc->sc_if.if_unit,
|
||||
dst->sa_family);
|
||||
if_printf(ifp, "af%d not supported\n", dst->sa_family);
|
||||
m_freem(m);
|
||||
sc->sc_if.if_noproto++;
|
||||
return (EAFNOSUPPORT);
|
||||
|
Loading…
Reference in New Issue
Block a user