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