printk and kernel log

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Thu Jun 27 11:59:43 EDT 2013


On Thu, 27 Jun 2013 18:46:50 +0300, Kevin Wilson said:
> Thanks, but unfortuantely this is not so.
> On this machine I have:
>  /bin/hostname
> amd1

Weird.  Maybe you have a flaky syslog() call that writes UDP packets to the
local host, rather than using the unix-domain socket at /dev/log - when the
packet arrives, the syslogd gets the source address of the packet (which will
be 127.0.0.1), and looks it up (usually in /etc/hosts), where it's getting the
name "localhost".

If you want to fix that, change the entry in /etc/hosts (on my laptop,
it looks like this:

127.0.0.1   turing-police.cc.vt.edu localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         turing-police.cc.vt.edu localhost localhost.localdomain localhost6 localhost6.localdomain6



-------------- 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/20130627/7809389c/attachment.bin 


More information about the Kernelnewbies mailing list