diff --git a/LKMPG-3.16.html b/LKMPG-3.16.html index bdf0486..cc4d131 100644 --- a/LKMPG-3.16.html +++ b/LKMPG-3.16.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + The Linux Kernel Module Programming Guide @@ -2654,13 +2654,14 @@ MODULE_AUTHOR("Bob Mottram"); static struct kobj_attribute myvariable_attribute = - __ATTR(myvariable, 0660, myvariable_show, myvariable_store); + __ATTR(myvariable, 0660, myvariable_show, + myvariable_store); static int __init mymodule_init (void) { int error = 0; - pr_debug("mymodule: initialised\n"); + printk(KERN_INFO "mymodule: initialised\n"); mymodule = kobject_create_and_add("mymodule", kernel_kobj); @@ -2669,8 +2670,8 @@ MODULE_AUTHOR("Bob Mottram"); error = sysfs_create_file(mymodule, &myvariable_attribute.attr); if (error) { - pr_debug("failed to create the myvariable file " \ - "in /sys/kernel/mymodule\n"); + printk(KERN_INFO "failed to create the myvariable file " \ + "in /sys/kernel/mymodule\n"); } return error; @@ -2678,7 +2679,7 @@ MODULE_AUTHOR("Bob Mottram"); static void __exit mymodule_exit (void) { - pr_debug ("mymodule: Exit success\n"); + printk(KERN_INFO "mymodule: Exit success\n"); kobject_put(mymodule); }