timestamping for kernel messages (like Solaris and Linux)

Peter Jeremy peterjeremy at optushome.com.au
Sun Jun 8 11:59:23 UTC 2008

On 2008-Jun-08 10:24:53 +0300, Niki Denev <ndenev at gmail.com> wrote:
>Has anyone thought about implementing an option
>to prepend all kernel console messages with timestamps,
>like Linux and Solaris do?

The only time I've seen Solaris do this is when the console message
is syslog'd - which FreeBSD also does.

>Is it just a matter of hacking up the kernel printf() implementation?

Pretty much.

>Any possible caveats?

The kernel works in UTC only and has only a very restricted ability
to translate between epoch seconds and a human-readable date/time
(it's currently only used to talk to the RTC).

Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080608/fa46fa52/attachment.pgp

More information about the freebsd-hackers mailing list