[GFS2] Audit printk and kmalloc
All printk calls now have KERN_ set where required and a couple of kmalloc(), memset(.., 0, ...) calls changed to kzalloc(). This is in response to comments from: Pekka Enberg <penberg@cs.helsinki.fi> and Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
@@ -22,7 +22,7 @@ int __init init_lock_dlm(void)
|
||||
|
||||
error = gfs_register_lockproto(&gdlm_ops);
|
||||
if (error) {
|
||||
printk("lock_dlm: can't register protocol: %d\n", error);
|
||||
printk(KERN_WARNING "lock_dlm: can't register protocol: %d\n", error);
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ int __init init_lock_dlm(void)
|
||||
gdlm_drop_count = GDLM_DROP_COUNT;
|
||||
gdlm_drop_period = GDLM_DROP_PERIOD;
|
||||
|
||||
printk("Lock_DLM (built %s %s) installed\n", __DATE__, __TIME__);
|
||||
printk(KERN_INFO "Lock_DLM (built %s %s) installed\n", __DATE__, __TIME__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user