diff options
Diffstat (limited to 'include/sys/zfs_debug.h')
-rw-r--r-- | include/sys/zfs_debug.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sys/zfs_debug.h b/include/sys/zfs_debug.h index f3a936ae7..f60932b5a 100644 --- a/include/sys/zfs_debug.h +++ b/include/sys/zfs_debug.h @@ -55,11 +55,12 @@ extern int zfs_dbgmsg_enable; #define ZFS_DEBUG_SET_ERROR (1 << 9) #define ZFS_DEBUG_INDIRECT_REMAP (1 << 10) -extern void __dprintf(const char *file, const char *func, +extern void __zfs_dbgmsg(char *buf); +extern void __dprintf(boolean_t dprint, const char *file, const char *func, int line, const char *fmt, ...); #define zfs_dbgmsg(...) \ if (zfs_dbgmsg_enable) \ - __dprintf(__FILE__, __func__, __LINE__, __VA_ARGS__) + __dprintf(B_FALSE, __FILE__, __func__, __LINE__, __VA_ARGS__) #ifdef ZFS_DEBUG /* @@ -69,7 +70,7 @@ extern void __dprintf(const char *file, const char *func, */ #define dprintf(...) \ if (zfs_flags & ZFS_DEBUG_DPRINTF) \ - __dprintf(__FILE__, __func__, __LINE__, __VA_ARGS__) + __dprintf(B_TRUE, __FILE__, __func__, __LINE__, __VA_ARGS__) #else #define dprintf(...) ((void)0) #endif /* ZFS_DEBUG */ |