LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   printk not working through telnet (https://www.linuxquestions.org/questions/linux-newbie-8/printk-not-working-through-telnet-428979/)

fssengg 03-27-2006 09:17 AM

printk not working through telnet
 
Hi all

I wrote a simple linux module
Code:


#include<linux/module.h>
int init_module(void)
{
  printk("In init_module \n");
  return 0;
}
void cleanup_module(void)
{
  printk("in cleanup_module \n");
}

MODULE_LICENSE("GPL");

I have successfully compiled the code to .o.If i try to insert the module from the shell directly it is working .But when i try to insert the module in telnet mode the printk is not printing anything on my terminal.Any idea why it is so?

perfect_circle 03-28-2006 04:08 AM

if you try:
Code:

dmesg |tail
is it printed there?

Also, does it also print in a virtual terminal from X windows or only from a real tty?

I think this has to do wityh being on a real terminal or an virtual terminal.

I remember reading something in the "linix device drivers" book


All times are GMT -5. The time now is 04:56 PM.