pradeep singh wrote: > Second doubt dmesg shows me pid of the current process during insmod > as 2445. but when i rmmod the module it has changed to 2445<7> why? > why is it not showing the KERN_DEBUG priority before also.On the > second thoughts why is <7> there at all? > > KERN_DEBUG *is* the "<7>" literal that just gets prepended to your log message. In order for it to be interpreted as a log level it must follow a new line character. The problem is that you're not using the new line correctly, *at the end* of your messages => the KERN_DEBUG literal from your exit printk ends up on the same line with the output from your init printk. --- fm -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/