This page looks best with JavaScript enabled

Human Readable dmsg Timestamp

 ·  ☕ 1 min read

Some times i find some errors while reading dmesg on the console
but I cannot find when it happened.

[156120.304743]  [<c104fae8>] ? autoremove_wake_function+0x29/0x29
[156120.304745]  [<c10f0af6>] ? __wait_on_buffer+0x18/0x1a
[156120.304764]  [<e09144b2>] ? jbd2_journal_commit_transaction+0xa34/0xfae [jbd2]
[156120.304767]  [<c1043d65>] ? try_to_del_timer_sync+0x56/0x5d
[156120.304772]  [<e0917a11>] ? kjournald2+0xa4/0x1d5 [jbd2]
[156120.304774]  [<c104fabf>] ? finish_wait+0x4c/0x4c
[156120.304777]  [<e091796d>] ? journal_init_common+0xfc/0xfc [jbd2]
[156120.304779]  [<c104f726>] ? kthread+0x72/0x77

just use dmesg -T

[dom feb 21 12:12:13 2021]  [<c104fae8>] ? autoremove_wake_function+0x29/0x29
[dom feb 21 12:12:13 2021]  [<c10f0af6>] ? __wait_on_buffer+0x18/0x1a
[dom feb 21 12:12:13 2021]  [<e09144b2>] ? jbd2_journal_commit_transaction+0xa34/0xfae [jbd2]
[dom feb 21 12:12:13 2021]  [<c1043d65>] ? try_to_del_timer_sync+0x56/0x5d
[dom feb 21 12:12:13 2021]  [<e0917a11>] ? kjournald2+0xa4/0x1d5 [jbd2]
[dom feb 21 12:12:13 2021]  [<c104fabf>] ? finish_wait+0x4c/0x4c
[dom feb 21 12:12:13 2021]  [<e091796d>] ? journal_init_common+0xfc/0xfc [jbd2]
[dom feb 21 12:12:13 2021]  [<c104f726>] ? kthread+0x72/0x77

but

-T, –ctime
Print human readable timestamps. The timestamp could be inaccurate!

useful is also

-d, –show-delta
show time delta between printed messages