runtime control of printk times

Posted 2011.04.22 16:18

source URL: http://elinux.org/Printk_Times


You can enable and disable printk timestamps at runtime, by writing to /sys/module/printk/parameters/time.

# cat /sys/module/printk/parameters/time
N
# echo 1 >/sys/module/printk/parameters/time
# cat /sys/module/printk/parameters/time
Y
# echo "sample log message" >/dev/kmsg
# dmesg | tail
....
[3814526.197336] sample log message
« PREV : 1 : 2 : 3 : 4 : 5 : 6 : 7 : 8 : 9 : 10 : ··· : 28 : NEXT »