diff options
author | Brian Behlendorf <[email protected]> | 2012-01-20 16:39:12 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-02-02 11:27:54 -0800 |
commit | 4b2220f0b937018b79154ac368c845e6176a8a66 (patch) | |
tree | 07877c960d2d94a913e8d38c0421e21bacb3592c /module/spl/spl-err.c | |
parent | 3c6ed5410beb7a4f9e0c042229eb63c4c11a5fc9 (diff) |
Add --enable-debug-log configure option
Until now the notion of an internal debug logging infrastructure
was conflated with enabling ASSERT()s. This patch clarifies things
by cleanly breaking the two subsystem apart. The result of this
is the following behavior.
--enable-debug - Enable/disable code wrapped in ASSERT()s.
--disable-debug ASSERT()s are used to check invariants and
are never required for correct operation.
They are disabled by default because they
may impact performance.
--enable-debug-log - Enable/disable the debug log infrastructure.
--disable-debug-log This infrastructure allows the spl code and
its consumer to log messages to an in-kernel
log. The granularity of the logging can be
controlled by a debug mask. By default the
mask disables most debug messages resulting
in a negligible performance impact. Because
of this the debug log is enabled by default.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/spl/spl-err.c')
-rw-r--r-- | module/spl/spl-err.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/spl/spl-err.c b/module/spl/spl-err.c index 200028f3b..c837d1eaa 100644 --- a/module/spl/spl-err.c +++ b/module/spl/spl-err.c @@ -34,7 +34,7 @@ #define SS_DEBUG_SUBSYS SS_GENERIC -#ifndef NDEBUG +#ifdef DEBUG_LOG static char ce_prefix[CE_IGNORE][10] = { "", "NOTICE: ", "WARNING: ", "" }; static char ce_suffix[CE_IGNORE][2] = { "", "\n", "\n", "" }; #endif |