diff options
author | delphij <delphij@FreeBSD.org> | 2014-09-13 17:30:46 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-09-13 17:30:46 +0000 |
commit | b157123631b928ffeb6fd3a56c3aed0ef7b09cef (patch) | |
tree | 9d9b3971932497a0adb4a20ce68f7ec979113b82 /cddl/contrib | |
parent | 3a202e2324f1044b4475f6e0fa21e72569f9cdfe (diff) | |
download | FreeBSD-src-b157123631b928ffeb6fd3a56c3aed0ef7b09cef.zip FreeBSD-src-b157123631b928ffeb6fd3a56c3aed0ef7b09cef.tar.gz |
MFV r271516:
Enable debug printf's when ZFS_DEBUG or debug= is set.
Illumos issue:
5134 if ZFS_DEBUG or debug= is set, libzpool should enable debug prints
MFC after: 2 weeks
Diffstat (limited to 'cddl/contrib')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libzpool/common/kernel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c b/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c index 1a2c2ac..ef38696 100644 --- a/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c +++ b/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c @@ -650,6 +650,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; } int |