KERN_INFO
This commit is contained in:
parent
eb3dd5a393
commit
7e530bf026
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
/* Meta Info */
|
||||
|
@ -11,7 +12,7 @@ MODULE_LICENSE("GPL");
|
|||
* @brief Called on load
|
||||
*/
|
||||
static int __init demo_mod_init(void) {
|
||||
printk("Demo module loaded successfully...");
|
||||
printk(KERN_INFO "Demo module loaded successfully...");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -19,7 +20,7 @@ static int __init demo_mod_init(void) {
|
|||
* @brief Called on unload
|
||||
*/
|
||||
static void __exit demo_mod_exit(void) {
|
||||
printk("Demo module unloaded successfully...");
|
||||
printk(KERN_INFO "Demo module unloaded successfully...");
|
||||
}
|
||||
|
||||
module_init(demo_mod_init);
|
||||
|
|
Loading…
Add table
Reference in a new issue