/* 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");
}