aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_debug.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-02-09 16:33:55 -0800
committerBrian Behlendorf <[email protected]>2012-02-09 16:37:48 -0800
commita31acb462d70aea9bbd5f0c96f7df109e2dde5aa (patch)
treeff563b4f762b7d0543247ab3eb791df8e72445ad /module/zfs/zfs_debug.c
parent30930fba219642cb1dadf1c8ef60ff799e3dc424 (diff)
Use spl_debug_* helpers
When configuring the spl debug log support use the provided wrapper functions. This ensures that if --disable-debug-log was used when buiding the spl the functions will have no effect. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zfs_debug.c')
-rw-r--r--module/zfs/zfs_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/zfs_debug.c b/module/zfs/zfs_debug.c
index f4b5e6fa1..e56177815 100644
--- a/module/zfs/zfs_debug.c
+++ b/module/zfs/zfs_debug.c
@@ -59,8 +59,8 @@ zfs_dbgmsg_init(void)
if (zfs_flags == 0) {
#if defined(_KERNEL)
zfs_flags = ZFS_DEBUG_DPRINTF;
- spl_debug_mask |= SD_DPRINTF;
- spl_debug_subsys |= SS_USER1;
+ spl_debug_set_mask(spl_debug_get_mask() | SD_DPRINTF);
+ spl_debug_set_subsys(spl_debug_get_subsys() | SS_USER1);
#else
zfs_flags = ~ZFS_DEBUG_DPRINTF;
#endif /* _KERNEL */