Hi, Aruna Thanks for your answer! I used printk like this in the previous submit. printk(KERN_ALERT "Hello World !"); I will change "KERN_ALERT" to "KERN_DEBUG" and try to submit again! also thanks for Masood Mehmood and Parinay Kondekar's help! Best Regards! wangyubin On 03/25/2014 10:16 AM, Aruna Hewapathirane wrote:
Hi Wangyubin,
The log level you require is KERN_DEBUG ...
But when you run checkpatch.pl on your *.c file it will say:
WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ...
So replacing printk(KERN_DEBUG ... with pr_debug will resolve this.
You can find the log files in /var/log and you can list them with ls /var/log.
The latest kernel I found has the debug and messages logs disabled by default. You can easily rectify this by editing /etc/rsyslog.d/50-default.conf. And un-commenting the section :
#*.=debug;\ # auth,authpriv.none;\ # news.none;mail.none -/var/log/debug #*.=info;*.=notice;*.=warn;\ # auth,authpriv.none;\ # cron,daemon.none;\ # mail,news.none -/var/log/messages
This will give you back the debug and message logs.
Good luck !
Aruna
On Mon, Mar 24, 2014 at 9:28 PM, wangyubin <harry198344@gmail.com> wrote:
Hello, I have dive into the eudyptula-challenge, but when I submit my result for task 01. I received a reply below:
Please print to the kernel debug log level. I have sended module(c file), Makefile, and dmesg output for load/unload the module. Could anyone to tell me what does this message mean? Thanks a lot!
-- Best Regards! wangyubin
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies