X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fkernel.git;a=blobdiff_plain;f=hello%2Fhello.c;fp=hello%2Fhello.c;h=74ace2aaf2f9dd50b45099b518591e0fc33a5b83;hp=48bcb33093506b829322a39604e8066e431abec4;hb=9e37f9f283bb4c910f09b812b858bce3b4de3562;hpb=395fd5f8ac9b98dac953183fa3d8ccb38c3a86c1 diff --git a/hello/hello.c b/hello/hello.c index 48bcb33..74ace2a 100644 --- a/hello/hello.c +++ b/hello/hello.c @@ -1,14 +1,14 @@ /* my first kernel driver :-) */ -#define MODULE #include +#include 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"); }