X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Fsys%2Fzfs_debug.h;h=e51207955555fe0827f4bc4b54a87e9b4a2bf7fc;hb=d1d7e2689db9e03f11c069ebc9f1ba12829e5dac;hp=1013009fd24c8eb4666d7d6164d887ff49fb8f47;hpb=8ffef572ed2ba97e0c2d6a8aa2240012e611dc6f;p=mirror_zfs.git diff --git a/include/sys/zfs_debug.h b/include/sys/zfs_debug.h index 1013009fd..e51207955 100644 --- a/include/sys/zfs_debug.h +++ b/include/sys/zfs_debug.h @@ -75,7 +75,7 @@ extern int zfs_recover; * filtered based on the zfs_flags variable. */ #else -#define dprintf(...) \ +#define dprintf(...) \ if (zfs_flags & ZFS_DEBUG_DPRINTF) \ __dprintf(__FILE__, __func__, __LINE__, __VA_ARGS__) @@ -92,7 +92,7 @@ typedef struct zfs_dbgmsg { extern void zfs_dbgmsg_init(void); extern void zfs_dbgmsg_fini(void); #if defined(_KERNEL) && defined(__linux__) -#define zfs_dbgmsg(...) dprintf(__VA_ARGS__) +#define zfs_dbgmsg(...) dprintf(__VA_ARGS__) #else extern void zfs_dbgmsg(const char *fmt, ...); extern void zfs_dbgmsg_print(const char *tag);