2005-01-10 08:26:38

by selvakumar nagendran

[permalink] [raw]
Subject: printk output to file

Hello linux-experts,
I want to redirect the output of printk from my
kernel module to a file. If that's possible how can I
do that? Please also give some sample code.

Thanks,
selva


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


2005-01-10 09:34:16

by Bernd Petrovitsch

[permalink] [raw]
Subject: Re: printk output to file

On Mon, 2005-01-10 at 00:26 -0800, selvakumar nagendran wrote:
> I want to redirect the output of printk from my
> kernel module to a file. If that's possible how can I
> do that?

You have to configure syslog correctly. Again this has nothing to do
with the kernel.

Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services



2005-01-10 17:53:12

by Manu Abraham

[permalink] [raw]
Subject: Re: printk output to file

On Mon January 10 2005 12:26 pm, selvakumar nagendran wrote:
> Hello linux-experts,
> I want to redirect the output of printk from my
> kernel module to a file. If that's possible how can I
Don't redirect, The printk's would be in your syslog. Check your syslog ..
simple.

Manu
> do that? Please also give some sample code.
>
> Thanks,
> selva
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/