]> hackdaworld.org Git - my-code/kernel.git/blobdiff - hello/hello.c
-
[my-code/kernel.git] / hello / hello.c
index 48bcb33093506b829322a39604e8066e431abec4..74ace2aaf2f9dd50b45099b518591e0fc33a5b83 100644 (file)
@@ -1,14 +1,14 @@
 /* my first kernel driver :-) */
 
-#define MODULE
 #include <linux/module.h>
+#include <linux/kernel.h>
 
 int init_module(void) {
-       printk("<1>hi hackbard, here is your kernel speaking! :)\n");
+       printk(KERN_ALERT "hi hackbard, here is your kernel speaking! :)\n");
        return 0;
 }
 
 void cleanup_module(void) {
-       printk("<1>bye hackbard ...\n");
+       printk(KERN_ALERT "bye hackbard ...\n");
 }