Skip to content
Permalink
Browse files

5134 if ZFS_DEBUG or debug= is set, libzpool should enable debug prints

Reviewed by: Adam Leventhal <adam.leventhal@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
  • Loading branch information...
ahrens authored and Christopher Siden committed Sep 11, 2014
1 parent af3465d commit 7fa49ea5e7d23077615525b1738f90f273258b05
Showing with 3 additions and 0 deletions.
  1. +3 −0 usr/src/lib/libzpool/common/kernel.c
@@ -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;
}

/*

0 comments on commit 7fa49ea

Please sign in to comment.
You can’t perform that action at this time.