Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
adding time and date to dmesg output
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Tue Feb 24, 2009 7:45 am    Post subject: adding time and date to dmesg output Reply with quote

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
View user's profile Send private message
ecroy
n00b
n00b


Joined: 08 Nov 2002
Posts: 59

PostPosted: Tue Feb 24, 2009 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Wed Feb 25, 2009 6:42 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Thu Feb 26, 2009 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Thu Feb 26, 2009 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum