printk and kernel log

Valdis.Kletnieks at Valdis.Kletnieks at
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, 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: localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 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 : 

More information about the Kernelnewbies mailing list