From 7e530bf026f5041df3fda6d6ff4217c687283039 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 12 Jun 2024 12:31:30 +0200 Subject: [PATCH] KERN_INFO --- demo_module.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demo_module.c b/demo_module.c index 1e03ee0..e43ae92 100644 --- a/demo_module.c +++ b/demo_module.c @@ -1,4 +1,5 @@ #include +#include #include /* 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);