summaryrefslogtreecommitdiff
path: root/source/module/monitor_kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/module/monitor_kernel.c')
-rw-r--r--source/module/monitor_kernel.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/module/monitor_kernel.c b/source/module/monitor_kernel.c
index 77ac231..79d8103 100644
--- a/source/module/monitor_kernel.c
+++ b/source/module/monitor_kernel.c
@@ -21,8 +21,7 @@ struct my_device_data {
static int device_open(struct inode *inode, struct file *file) {
struct my_device_data *data;
- printk(KERN_INFO "variable_monitor fun: %s with pid %d\n", __FUNCTION__,
- current->pid);
+ printk(KERN_INFO "variable_monitor open device with pid %d\n", current->pid);
// save pid
data = kmalloc(sizeof(*data), GFP_KERNEL);
if (!data)
@@ -35,8 +34,7 @@ static int device_open(struct inode *inode, struct file *file) {
static int device_release(struct inode *inode, struct file *file) {
// load pid
struct my_device_data *data = file->private_data;
- printk(KERN_INFO "variable_monitor fun: %s with pid %d\n", __FUNCTION__,
- data->pid);
+ printk(KERN_INFO "variable_monitor release device with pid %d\n", data->pid);
// clear watch with pid
clear_watch(data->pid);
kfree(data); // free data memory