<p>Hi</p>
<p>Set your log level to 8 so you can see your messages. The pr_ *ones <br>
Should be good.</p>
<p>Also check how to enable that macro for specific or all files of your module.<br><br></p>
<p>On Mar 25, 2014 10:18 AM, "wangyubin" <<a href="mailto:harry198344@gmail.com">harry198344@gmail.com</a>> wrote:<br>
><br>
> OK, I will try to use that.<br>
> :-)<br>
><br>
> Best Regards!<br>
> wangyubin<br>
><br>
> On 03/25/2014 11:28 AM, Aruna Hewapathirane wrote:<br>
> > Hi Wangyubin,<br>
> ><br>
> > You may want to drop by the IRC channel : <a href="http://kernelnewbies.org/IRC">http://kernelnewbies.org/IRC</a><br>
> > has lots of friendly and vastly more experienced folks.<br>
> ><br>
> > :)<br>
> ><br>
> > On Mon, Mar 24, 2014 at 11:08 PM, wangyubin <<a href="mailto:harry198344@gmail.com">harry198344@gmail.com</a>> wrote:<br>
> >> Hi, Aruna<br>
> >><br>
> >> I will use Checkpatch.pl to check my source file by your advice!<br>
> >> thanks again!<br>
> >><br>
> >> Best Regards!<br>
> >> wangyubin<br>
> >><br>
> >><br>
> >> On 03/25/2014 10:48 AM, Aruna Hewapathirane wrote:<br>
> >>> Hi Wangyubin,<br>
> >>><br>
> >>> There is a *reason* why I decided to give you a helping hand my dear,<br>
> >>><br>
> >>> "I" had a very hard time with that task-01 but it did help me<br>
> >>> immensely to begin to understand how things work and are done in the<br>
> >>> kernel. I do not want anyone else to waste time if we can get<br>
> >>> newcomers up to a certain level of competency where they can<br>
> >>> contribute to the kernel this world will be a much better place.<br>
> >>><br>
> >>> Run <a href="http://checkpatch.pl">checkpatch.pl</a> and try to resolve all errors and warnings before<br>
> >>> you sumbit as else little penguin will say uh-uh sorry try again !<br>
> >>><br>
> >>> Checkpatch is your friend and so is Google so use them :)<br>
> >>><br>
> >>><br>
> >>><br>
> >>> On Mon, Mar 24, 2014 at 10:42 PM, wangyubin <<a href="mailto:harry198344@gmail.com">harry198344@gmail.com</a>> wrote:<br>
> >>>> Hi, Aruna<br>
> >>>><br>
> >>>> Thanks for your answer!<br>
> >>>><br>
> >>>> I used printk like this in the previous submit.<br>
> >>>> printk(KERN_ALERT "Hello World !");<br>
> >>>><br>
> >>>> I will change "KERN_ALERT" to "KERN_DEBUG" and try to submit again!<br>
> >>>><br>
> >>>> also thanks for Masood Mehmood and Parinay Kondekar's help!<br>
> >>>><br>
> >>>> Best Regards!<br>
> >>>> wangyubin<br>
> >>>><br>
> >>>> On 03/25/2014 10:16 AM, Aruna Hewapathirane wrote:<br>
> >>>>> Hi Wangyubin,<br>
> >>>>><br>
> >>>>> The log level you require is KERN_DEBUG ...<br>
> >>>>><br>
> >>>>> But when you run <a href="http://checkpatch.pl">checkpatch.pl</a> on your *.c file it will say:<br>
> >>>>><br>
> >>>>> WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then<br>
> >>>>> pr_debug(... to printk(KERN_DEBUG ...<br>
> >>>>><br>
> >>>>> So replacing printk(KERN_DEBUG ... with pr_debug will resolve this.<br>
> >>>>><br>
> >>>>> You can find the log files in /var/log and you can list them with ls<br>
> >>>>> /var/log.<br>
> >>>>><br>
> >>>>> The latest kernel I found has the debug and messages logs disabled by<br>
> >>>>> default. You can easily rectify this by editing<br>
> >>>>> /etc/rsyslog.d/50-default.conf. And un-commenting the section :<br>
> >>>>><br>
> >>>>> #*.=debug;\<br>
> >>>>> # auth,authpriv.none;\<br>
> >>>>> # news.none;mail.none -/var/log/debug<br>
> >>>>> #*.=info;*.=notice;*.=warn;\<br>
> >>>>> # auth,authpriv.none;\<br>
> >>>>> # cron,daemon.none;\<br>
> >>>>> # mail,news.none -/var/log/messages<br>
> >>>>><br>
> >>>>> This will give you back the debug and message logs.<br>
> >>>>><br>
> >>>>> Good luck !<br>
> >>>>><br>
> >>>>> Aruna<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> On Mon, Mar 24, 2014 at 9:28 PM, wangyubin <<a href="mailto:harry198344@gmail.com">harry198344@gmail.com</a>><br>
> >>>>> wrote:<br>
> >>>>>> Hello,<br>
> >>>>>> I have dive into the eudyptula-challenge, but when I submit my result<br>
> >>>>>> for task 01.<br>
> >>>>>> I received a reply below:<br>
> >>>>>>> Please print to the kernel debug log level.<br>
> >>>>>> I have sended module(c file), Makefile, and dmesg output for<br>
> >>>>>> load/unload the module.<br>
> >>>>>> Could anyone to tell me what does this message mean?<br>
> >>>>>> Thanks a lot!<br>
> >>>>>><br>
> >>>>>> --<br>
> >>>>>> Best Regards!<br>
> >>>>>> wangyubin<br>
> >>>>>><br>
> >>>>>><br>
> >>>>>> _______________________________________________<br>
> >>>>>> Kernelnewbies mailing list<br>
> >>>>>> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> >>>>>> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
> >>>><br>
> >>>> _______________________________________________<br>
> >>>> Kernelnewbies mailing list<br>
> >>>> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> >>>> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
> >><br>
><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</p>