summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRicardo M. Correia <[email protected]>2010-07-20 15:25:45 -0700
committerBrian Behlendorf <[email protected]>2010-07-20 15:31:03 -0700
commit81672c012249f1ba81a27a1ff8f9b19b4a8048a8 (patch)
tree2e115a393c5fd572c00ffbd5600463d98763ba1b /include
parent2c762de8303e441154a0c38c0cf78170b5d45013 (diff)
Display DEBUG keyword during module load when --enable-debug is used.
Signed-off-by: Ricardo M. Correia <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sys/debug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/debug.h b/include/sys/debug.h
index 0da7e31bb..fbf15143f 100644
--- a/include/sys/debug.h
+++ b/include/sys/debug.h
@@ -46,6 +46,9 @@
#ifdef NDEBUG /* Debugging Disabled */
+/* Define SPL_DEBUG_STR to make clear which ASSERT definitions are used */
+#define SPL_DEBUG_STR ""
+
#define PANIC(fmt, a...) \
do { \
printk(KERN_EMERG fmt, ## a); \
@@ -81,6 +84,9 @@ do { \
#else /* Debugging Enabled */
+/* Define SPL_DEBUG_STR to make clear which ASSERT definitions are used */
+#define SPL_DEBUG_STR " (DEBUG mode)"
+
#define PANIC(fmt, a...) \
do { \
spl_debug_msg(NULL, 0, 0, \