Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
For some reason, my printk()'s aren't putting anything out to my /var/log/messages file. I am running X so, as I understand it, messages won't appear in the terminals where I insmod() the module. But they should appear in /var/log/messages.
If I load my test module, I do get a message from /var/log/messages saying ....
How are you loading your module? If you are using modprobe, are you putting your re-compiled module in the correct place and doing a depmod -a to rebuild the dependency file? What does your printk() look like, are you putting a \n at the end of the string, if not then it won't show up until later and it'll be mixed in with other messages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.