Skip to contentSkip to conversation

Probs in printk

DISCUSSION _VJ 2 participants 2 messages Mar 31, 2003

lore
Share & tools
lore

_VJ

author
#0 lore raw

Hi,

I'm using printk for the device driver I'm writing.It doesn't give the output to my console and the only way I can get those is just using
cat /proc/kmsg.But what I want is to get console prints while I'm running .Then I put the kernel image of the remote system where it used to give console output.Still I'm not getting any output to the screen.I tried to use console_print ....not giving any result to the console.So I would like to know what can I do about this

Thanx in advance.

Vj

#1 lore raw

On Mon, 31 Mar 2003 15:36:47 +0530 _VJ <[email protected]> wrote:

| Hi,
| 
| I'm using printk for the device driver I'm writing.It doesn't give the 
| output to my console and the only way I can get those is just using
| cat  /proc/kmsg.But what I want is to get console prints while I'm 
| running .Then I put the kernel image of the remote system where it used 
| to give console output.Still I'm not getting any output to the screen.I 
| tried to use console_print ....not giving any result to the console.So I 
| would like to know what can I do about this

The only time that I've had this kind of problem (that I recall), I just had to use a KERN_printklevel attribute to print the message. E.g.,

	printk(KERN_CRIT "where does this message go\n");

It can also help to change the console loglevel (Alt-SysRq-N, where N is 1 digit, higher prints more messages [try 9]).

and what kernel version? You should always give that info, even when it's useless. :)

--
~Randy