projects
/
my-code
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-
[my-code/kernel.git]
/
hello
/
hello.c
diff --git
a/hello/hello.c
b/hello/hello.c
index
48bcb33
..
74ace2a
100644
(file)
--- a/
hello/hello.c
+++ b/
hello/hello.c
@@
-1,14
+1,14
@@
/* my first kernel driver :-) */
/* my first kernel driver :-) */
-#define MODULE
#include <linux/module.h>
#include <linux/module.h>
+#include <linux/kernel.h>
int init_module(void) {
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) {
return 0;
}
void cleanup_module(void) {
- printk(
"<1>
bye hackbard ...\n");
+ printk(
KERN_ALERT "
bye hackbard ...\n");
}
}