LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to print a message from kernel module to terminal console or tty console (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-print-a-message-from-kernel-module-to-terminal-console-or-tty-console-700954/)

yogesh_bansal 01-30-2009 01:34 AM

How to print a message from kernel module to terminal console or tty console
 
Hi friends,

I am newbie to Linux. I have written a small kernel module. In the module, I am just printing few string. the module is working fine. But the string are getting printing in /var/log/message file. I want to print the kernel module message on the terminal console instead of /var/log/message.

Can anybody guide me on this?
thanks
Yogesh

jstephens84 01-31-2009 10:28 AM

I think 2 is Standard Error and 1 is Standard out or terminal. You might be able to output message like 2>&1

uj_san 02-27-2009 10:10 AM

@jstephens84 : hello sir... i am also facing the same prob... but i couldnt understand ur solution... can u pls be more clear???


All times are GMT -5. The time now is 09:00 AM.