View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5910
|
Posted: Tue Feb 24, 2009 7:45 am Post subject: adding time and date to dmesg output |
|
|
is there a way to do it? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
ecroy n00b
Joined: 08 Nov 2002 Posts: 59
|
Posted: Tue Feb 24, 2009 9:56 am Post subject: |
|
|
Usually your system logger keeps a copy of the kernel output - look into your /var/log/ directory and see if you find what you need there (e.g. /var/log/kernel/current if you use metalog).
If that doesn't suit your needs check out the kernel configuration option CONFIG_PRINTK_TIME in the "Kernel hacking" section. Hope that helps |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5910
|
Posted: Wed Feb 25, 2009 6:42 am Post subject: |
|
|
this adds the ugly ticks that ubuntu has, I was looking for time and date... _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9691 Location: almost Mile High in the USA
|
Posted: Thu Feb 26, 2009 8:11 pm Post subject: |
|
|
You'll have to hack the kernel to do that...
I'm not sure when in the kernel startup sequences the date and time get read from the hw rtc - probably late in boot. Thus during initial boot, the kernel has no idea what time it is, thus it prints out relative time. If all of the dmesg output gets logged by syslog, won't syslogd timestamp it anyway? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5910
|
Posted: Thu Feb 26, 2009 9:35 pm Post subject: |
|
|
eccerr0r wrote: | You'll have to hack the kernel to do that...
I'm not sure when in the kernel startup sequences the date and time get read from the hw rtc - probably late in boot. Thus during initial boot, the kernel has no idea what time it is, thus it prints out relative time. If all of the dmesg output gets logged by syslog, won't syslogd timestamp it anyway? |
don't know. will check it out _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|