svn commit: r276903 - head/sys/net

Andrey V. Elsukov ae at FreeBSD.org
Sat Jan 10 03:29:18 UTC 2015


Author: ae
Date: Sat Jan 10 03:29:17 2015
New Revision: 276903
URL: https://svnweb.freebsd.org/changeset/base/276903

Log:
  Use if_name() macro instead of ifp->if_xname.
  
  MFH:		1 week

Modified:
  head/sys/net/if_gif.c

Modified: head/sys/net/if_gif.c
==============================================================================
--- head/sys/net/if_gif.c	Sat Jan 10 03:26:46 2015	(r276902)
+++ head/sys/net/if_gif.c	Sat Jan 10 03:29:17 2015	(r276903)
@@ -464,7 +464,7 @@ gif_check_nesting(struct ifnet *ifp, str
 	mtag = NULL;
 	while ((mtag = m_tag_locate(m, MTAG_GIF, 0, mtag)) != NULL) {
 		if (*(struct ifnet **)(mtag + 1) == ifp) {
-			log(LOG_NOTICE, "%s: loop detected\n", ifp->if_xname);
+			log(LOG_NOTICE, "%s: loop detected\n", if_name(ifp));
 			return (EIO);
 		}
 		count++;


More information about the svn-src-head mailing list