pr_info not printing message in /var/log/messages

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Feb 5 12:13:36 EST 2013


On Tue, 05 Feb 2013 20:28:34 +0530, Shraddha Kamat said:

> still I the pr_info ("hello, world"); message doesn't get printed to
> /var/log/messages.
>
> please give me some hints as to resolve this issue.

The /proc/sys/kernel/printk control basically controls what printk
stuff gets printed to /dev/console.  What goes in /var/log/messages
will depend on what syslog server you're running, and what you have
coded in /etc/syslog.conf (or equivalent for rsyslogd or syslog-ng
or whatever you're running).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130205/a5b03625/attachment.bin 


More information about the Kernelnewbies mailing list