Skip to content

Commit

Permalink
5134 if ZFS_DEBUG or debug= is set, libzpool should enable debug prints
Browse files Browse the repository at this point in the history
Reviewed by: Adam Leventhal <[email protected]>
Reviewed by: Christopher Siden <[email protected]>
Reviewed by: George Wilson <[email protected]>
Reviewed by: Saso Kiselkov <[email protected]>
Approved by: Dan McDonald <[email protected]>
  • Loading branch information
ahrens authored and Christopher Siden committed Sep 11, 2014
1 parent af3465d commit 7fa49ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions usr/src/lib/libzpool/common/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit 7fa49ea

Please sign in to comment.