Change kernel log function
This commit is contained in:
parent
e3c9144b8a
commit
fc31b7e53b
2 changed files with 10 additions and 10 deletions
|
@ -3,12 +3,12 @@
|
|||
#include <linux/init.h>
|
||||
|
||||
static int __init basic_module_init(void) {
|
||||
printk(KERN_INFO "Bonjour! Le module est chargé.\n");
|
||||
pr_info("Bonjour! Le module est chargé.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit basic_module_exit(void) {
|
||||
printk(KERN_INFO "Au revoir! Le module est déchargé.\n");
|
||||
pr_info("Au revoir! Le module est déchargé.\n");
|
||||
}
|
||||
|
||||
module_init(basic_module_init);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue