summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorMatthew Ahrens <mahrens@delphix.com>2014-09-10 23:03:50 -0800
committerChristopher Siden <chris@delphix.com>2014-09-11 00:03:51 -0700
commit7fa49ea5e7d23077615525b1738f90f273258b05 (patch)
tree32a4e665cc2abeb73c7d8270060f4b01b529f7f4 /usr/src
parentaf3465da8fa420c4ec701e3e57704d537a6f755b (diff)
downloadillumos-joyent-7fa49ea5e7d23077615525b1738f90f273258b05.tar.gz
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>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/lib/libzpool/common/kernel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/lib/libzpool/common/kernel.c b/usr/src/lib/libzpool/common/kernel.c
index 418ef435b0..5e329733e1 100644
--- a/usr/src/lib/libzpool/common/kernel.c
+++ b/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;
}
/*