mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Display DEBUG keyword during module load when --enable-debug is used.
Signed-off-by: Ricardo M. Correia <ricardo.correia@oracle.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
committed by
Brian Behlendorf
parent
2c762de830
commit
81672c0122
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user