Author: will
Date: Wed Oct  1 15:34:48 2014
New Revision: 272367
URL: https://svnweb.freebsd.org/changeset/base/272367

Log:
  Instead of requiring an edit to turn on ZFS debugging, define ZFS_DEBUG.
  
  MFC after:    1 month

Modified:
  head/sys/modules/zfs/Makefile

Modified: head/sys/modules/zfs/Makefile
==============================================================================
--- head/sys/modules/zfs/Makefile       Wed Oct  1 15:32:28 2014        
(r272366)
+++ head/sys/modules/zfs/Makefile       Wed Oct  1 15:34:48 2014        
(r272367)
@@ -94,8 +94,10 @@ CFLAGS+=-DBUILDING_ZFS
 CFLAGS+=-mminimal-toc
 .endif
 
-#CFLAGS+=-DDEBUG=1
-#DEBUG_FLAGS=-g
+.ifdef ZFS_DEBUG
+CFLAGS+=-DDEBUG=1
+DEBUG_FLAGS=-g
+.endif
 
 .include <bsd.kmod.mk>
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to