|
|
Subscribe / Log in / New account

Reimplementing printk()

Reimplementing printk()

Posted Feb 28, 2019 20:34 UTC (Thu) by Cyberax (✭ supporter ✭, #52523)
In reply to: Reimplementing printk() by jogness
Parent article: Reimplementing printk()

I get piped dmesg output. I can play with its options but I don't see how I can make it print sequence numbers.


to post comments

Reimplementing printk()

Posted Mar 6, 2019 10:46 UTC (Wed) by jogness (subscriber, #49775) [Link]

If you can call dmesg, I expect you can read /dev/kmsg as well. Take a look at the output of:

cat /dev/kmsg

The second field is the sequence number. You can read about the format here:

https://www.kernel.org/doc/Documentation/ABI/testing/dev-...


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds