From 295cfa48db5c4b0b02009f67e66a1fc0c9843ddb Mon Sep 17 00:00:00 2001 From: Armin Luntzer <armin.luntzer@univie.ac.at> Date: Tue, 21 Feb 2017 13:44:03 +0100 Subject: [PATCH] update test module --- kernel/testmodule.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kernel/testmodule.c b/kernel/testmodule.c index f147c1b..4f85008 100644 --- a/kernel/testmodule.c +++ b/kernel/testmodule.c @@ -8,13 +8,15 @@ void somefunction(void) { - printf("this is some function\n"); + printk("this is some function\n"); } +void _module_exit(void) +{ + printk("cleaning up\n"); +} -void _module_init(void); - -void _module_init(void) +int _module_init(void) { int i; @@ -25,4 +27,5 @@ void _module_init(void) printk("allocating: %p\n", page_alloc()); + return 0; } -- GitLab