svn commit: r281824 - in head/sys: conf net

Gleb Smirnoff glebius at FreeBSD.org
Tue Apr 21 10:35:25 UTC 2015


Author: glebius
Date: Tue Apr 21 10:35:23 2015
New Revision: 281824
URL: https://svnweb.freebsd.org/changeset/base/281824

Log:
  Make IFMEDIA_DEBUG a kernel option.
  
  Sponsored by:	Nginx, Inc.

Modified:
  head/sys/conf/NOTES
  head/sys/conf/options
  head/sys/net/if_media.c

Modified: head/sys/conf/NOTES
==============================================================================
--- head/sys/conf/NOTES	Tue Apr 21 10:17:25 2015	(r281823)
+++ head/sys/conf/NOTES	Tue Apr 21 10:35:23 2015	(r281824)
@@ -2836,6 +2836,7 @@ options 	INIT_PATH=/sbin/init:/rescue/in
 options 	BUS_DEBUG	# enable newbus debugging
 options 	DEBUG_VFS_LOCKS	# enable VFS lock debugging
 options 	SOCKBUF_DEBUG	# enable sockbuf last record/mb tail checking
+options 	IFMEDIA_DEBUG	# enable debugging in net/if_media.c
 
 #
 # Verbose SYSINIT

Modified: head/sys/conf/options
==============================================================================
--- head/sys/conf/options	Tue Apr 21 10:17:25 2015	(r281823)
+++ head/sys/conf/options	Tue Apr 21 10:35:23 2015	(r281824)
@@ -553,6 +553,7 @@ LPT_DEBUG		opt_lpt.h
 PLIP_DEBUG		opt_plip.h
 LOCKF_DEBUG		opt_debug_lockf.h
 SI_DEBUG		opt_debug_si.h
+IFMEDIA_DEBUG		opt_ifmedia.h
 
 # Fb options
 FB_DEBUG		opt_fb.h

Modified: head/sys/net/if_media.c
==============================================================================
--- head/sys/net/if_media.c	Tue Apr 21 10:17:25 2015	(r281823)
+++ head/sys/net/if_media.c	Tue Apr 21 10:35:23 2015	(r281824)
@@ -46,6 +46,8 @@
  * to implement this interface.
  */
 
+#include "opt_ifmedia.h"
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/socket.h>


More information about the svn-src-all mailing list