From 5cd2c4891f9f89780e19290dafe9f82703f34aa7 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sat, 13 Sep 2014 15:27:46 +0000 Subject: [PATCH] 5134 if ZFS_DEBUG or debug= is set, libzpool should enable debug prints Reviewed by: Adam Leventhal Reviewed by: Christopher Siden Reviewed by: George Wilson Reviewed by: Saso Kiselkov Approved by: Dan McDonald Author: Matthew Ahrens illumos/illumos-gate@7fa49ea5e7d23077615525b1738f90f273258b05 --- lib/libzpool/common/kernel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libzpool/common/kernel.c b/lib/libzpool/common/kernel.c index 418ef435b00..5e329733e11 100644 --- a/lib/libzpool/common/kernel.c +++ b/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; } /*