Re: kern.msgbuf_show_timestamp=1

Jamie Landeg-Jones <[email protected]>
Newsgroups gmane.os.freebsd.stable
Organization Dyslexic Fish
Message-ID <[email protected]>
Andre Albsmeier <[email protected]> wrote:

> FWIW, this is a patch for dmesg(1) I use. You can enable timestamp
> conversion using -t and optionally specify a different output format
> using -f "fmt".
>
> If interested for inclusion in base, I could try to re-format it
> and come up with a manpage diff...

I'vw been meaning to do that for some time, so cool, now I don't have to :-)

I am not able to test the patch at the moment, but I looked at the patch
itself, and I like it. I like how you replace the numerical uptime with
the date/time (that's what I was planning on doing), but the addition of
the time formatting option is a nice touch I hadn't thought of doing!

I think this would make a nice addition to base dmesg, and I think
Warner was talking about getting proper datestamps in dmesg output a
while ago (though I'm not sure whether he meant at the dmesg presentation
side, or a sysctl to place the timestamp in the kernel-buffer messsage itself)

Hopefully I haven't got this wrong, and he can elaborate.

Cheers, Jamie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.