Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

printk second output

When I printk(KERN_INFO, ...), I get something like this:

<6>[116584.000183] ...

What is the number between the square brackets exactly?

like image 581
Mohammad Moghimi Avatar asked Apr 08 '26 19:04

Mohammad Moghimi


2 Answers

Seconds since startup. You can control whether this is shown with the CONFIG_PRINTK_TIME variable in kernel config.

like image 145
jho Avatar answered Apr 10 '26 22:04

jho


It's a timestamp with microsecond resolution. See the printk source.

like image 33
Fred Foo Avatar answered Apr 10 '26 23:04

Fred Foo