dmesg timestamp

[518950.884021] usb 2-4: new low speed USB device number 23 using ohci_hcd
[518951.108559] input: Trust GM-4200 Gamer Optical Mouse as /devices/pci0000:00/0000:00:0b.0/usb2/2-4/2-4:1.0/input/input24
[518951.108681] generic-usb 0003:145F:011A.0016: input,hidraw1: USB HID v1.11 Mouse [Trust GM-4200 Gamer Optical Mouse] on usb-0000:00:0b.0-4/input0

It’s kind of frustrating with dmesg timestamps. It basically show [seconds.nanoseconds] since last boot … that’s really accurate, and totally useless for humans that can’t do that math in their heads .
This guy at code.saghul.net wrote a great python script as a solution.
With reference to one of the comments at that blog, an even more elegant solution would be to simply use /var/log/kern.log , it’s already there 🙂

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.