Make use of ZFS_DEBUG consistent within kmod sources

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #10623
This commit is contained in:
Matthew Macy
2020-07-25 20:07:44 -07:00
committed by GitHub
parent f5b189f937
commit 6d8da84106
19 changed files with 39 additions and 34 deletions
+7 -2
View File
@@ -119,9 +119,11 @@ extern "C" {
#define __CONST __sun_attr__((__const__))
#define __PURE __sun_attr__((__pure__))
#if (defined(ZFS_DEBUG) || !defined(NDEBUG))&& !defined(DEBUG)
#define DEBUG
#ifdef INVARIANTS
#define ZFS_DEBUG
#undef NDEBUG
#endif
#define EXPORT_SYMBOL(x)
#define MODULE_AUTHOR(s)
#define MODULE_DESCRIPTION(s)
@@ -134,6 +136,9 @@ extern "C" {
#ifdef ZFS_DEBUG
#undef NDEBUG
#endif
#if !defined(ZFS_DEBUG) && !defined(NDEBUG)
#define NDEBUG
#endif
#ifndef EINTEGRITY
#define EINTEGRITY 97 /* EINTEGRITY is new in 13 */