Skip to contentSkip to conversation

printk output to file

DISCUSSION selvakumar nagendran 3 participants 3 messages Jan 10, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · selvakumar nagendran

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

Signature · 3 lines
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services
#2 lore raw
In reply to selvakumar nagendran
Quoted 3 lines · selvakumar nagendran

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

Quoted 15 lines

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/