aboutsummaryrefslogtreecommitdiffstats
path: root/module
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 /module
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 'module')
-rw-r--r--module/spl/spl-generic.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c
index a7083b6d2..57136cdd4 100644
--- a/module/spl/spl-generic.c
+++ b/module/spl/spl-generic.c
@@ -478,7 +478,8 @@ __init spl_init(void)
if ((rc = spl_kmem_init_kallsyms_lookup()))
SGOTO(out8, rc);
- printk("SPL: Loaded Solaris Porting Layer v%s\n", SPL_META_VERSION);
+ printk(KERN_NOTICE "SPL: Loaded Solaris Porting Layer v%s%s\n",
+ SPL_META_VERSION, SPL_DEBUG_STR);
SRETURN(rc);
out8:
kstat_fini();
@@ -497,8 +498,8 @@ out2:
out1:
debug_fini();
- printk("SPL: Failed to Load Solaris Porting Layer v%s, "
- "rc = %d\n", SPL_META_VERSION, rc);
+ printk(KERN_NOTICE "SPL: Failed to Load Solaris Porting Layer v%s%s"
+ ", rc = %d\n", SPL_META_VERSION, SPL_DEBUG_STR, rc);
return rc;
}
@@ -507,7 +508,8 @@ spl_fini(void)
{
SENTRY;
- printk("SPL: Unloaded Solaris Porting Layer v%s\n", SPL_META_VERSION);
+ printk(KERN_NOTICE "SPL: Unloaded Solaris Porting Layer v%s%s\n",
+ SPL_META_VERSION, SPL_DEBUG_STR);
kstat_fini();
proc_fini();
vn_fini();