Re: Probs in printk

Randy.Dunlap (rddunlap@osdl.org)
Mon, 31 Mar 2003 07:33:51 -0800


On Mon, 31 Mar 2003 15:36:47 +0530 _VJ <vjose@icope.com> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/