mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-24 10:41:35 +01:00
seq_file, printk to pr_info, disk persistency
This commit is contained in:
@@ -11,13 +11,13 @@ MODULE_LICENSE("GPL");
|
||||
|
||||
static int myinit(void)
|
||||
{
|
||||
printk(KERN_INFO "hello2 init\n");
|
||||
pr_info("hello2 init\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void myexit(void)
|
||||
{
|
||||
printk(KERN_INFO "hello2 exit\n");
|
||||
pr_info("hello2 exit\n");
|
||||
}
|
||||
|
||||
module_init(myinit)
|
||||
|
||||
Reference in New Issue
Block a user