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 <behlendorf1@llnl.gov>
This commit is contained in:
parent
30930fba21
commit
a31acb462d
@ -59,8 +59,8 @@ zfs_dbgmsg_init(void)
|
|||||||
if (zfs_flags == 0) {
|
if (zfs_flags == 0) {
|
||||||
#if defined(_KERNEL)
|
#if defined(_KERNEL)
|
||||||
zfs_flags = ZFS_DEBUG_DPRINTF;
|
zfs_flags = ZFS_DEBUG_DPRINTF;
|
||||||
spl_debug_mask |= SD_DPRINTF;
|
spl_debug_set_mask(spl_debug_get_mask() | SD_DPRINTF);
|
||||||
spl_debug_subsys |= SS_USER1;
|
spl_debug_set_subsys(spl_debug_get_subsys() | SS_USER1);
|
||||||
#else
|
#else
|
||||||
zfs_flags = ~ZFS_DEBUG_DPRINTF;
|
zfs_flags = ~ZFS_DEBUG_DPRINTF;
|
||||||
#endif /* _KERNEL */
|
#endif /* _KERNEL */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user