svn commit: r271516 - vendor/illumos/dist/lib/libzpool/common

Xin LI delphij at FreeBSD.org
Sat Sep 13 15:27:46 UTC 2014


Author: delphij
Date: Sat Sep 13 15:27:46 2014
New Revision: 271516
URL: http://svnweb.freebsd.org/changeset/base/271516

Log:
  5134 if ZFS_DEBUG or debug= is set, libzpool should enable debug prints
  Reviewed by: Adam Leventhal <adam.leventhal at delphix.com>
  Reviewed by: Christopher Siden <christopher.siden at delphix.com>
  Reviewed by: George Wilson <george.wilson at delphix.com>
  Reviewed by: Saso Kiselkov <skiselkov.ml at gmail.com>
  Approved by: Dan McDonald <danmcd at omniti.com>
  Author: Matthew Ahrens <mahrens at delphix.com>
  
  illumos/illumos-gate at 7fa49ea5e7d23077615525b1738f90f273258b05

Modified:
  vendor/illumos/dist/lib/libzpool/common/kernel.c

Modified: vendor/illumos/dist/lib/libzpool/common/kernel.c
==============================================================================
--- vendor/illumos/dist/lib/libzpool/common/kernel.c	Sat Sep 13 15:24:35 2014	(r271515)
+++ vendor/illumos/dist/lib/libzpool/common/kernel.c	Sat Sep 13 15:27:46 2014	(r271516)
@@ -629,6 +629,9 @@ dprintf_setup(int *argc, char **argv)
 	 */
 	if (dprintf_find_string("on"))
 		dprintf_print_all = 1;
+
+	if (dprintf_string != NULL)
+		zfs_flags |= ZFS_DEBUG_DPRINTF;
 }
 
 /*


More information about the svn-src-all mailing list