Re: [android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Greg KH
On Mon, Jan 18, 2010 at 7:44 PM, perumal316 wrote: > I just want to print the time when kernel messages are printed from > the module. The kernel already does this, no need to add anything on your own. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com

Re: [android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Dwi Sasongko S
So it's just a trial without any further benefit, right? IMHO, you can't do that. Dwi Sasongko S -Original Message- From: perumal316 Date: Mon, 18 Jan 2010 19:44:58 To: Android Linux Kernel Development Subject: [android-kernel] Re: Date&Time in LKM I just want to print

[android-kernel] Re: Date&Time in LKM

2010-01-18 Thread perumal316
Sender: android-kernel@googlegroups.com > To: Android Linux Kernel Development > ReplyTo: android-kernel@googlegroups.com > Subject: [android-kernel] Re: Date&Time in LKM > Sent: Jan 19, 2010 10:11 > > Oh Yah, I just realised, it is displaying the date and time the code > is built.

[android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Chew Esmero
Original Message-- > From: perumal316 > Sender: android-kernel@googlegroups.com > To: Android Linux Kernel Development > ReplyTo: android-kernel@googlegroups.com > Subject: [android-kernel] Re: Date&Time in LKM > Sent: Jan 19, 2010 10:11 > > Oh Yah, I just realise

Re: [android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Dwi Sasongko S
ly in the kernel. Cheers, DWI --Original Message-- From: perumal316 Sender: android-kernel@googlegroups.com To: Android Linux Kernel Development ReplyTo: android-kernel@googlegroups.com Subject: [android-kernel] Re: Date&Time in LKM Sent: Jan 19, 2010 10:11 Oh Yah, I just realis

[android-kernel] Re: Date&Time in LKM

2010-01-18 Thread perumal316
Oh Yah, I just realised, it is displaying the date and time the code is built. Is there any way to get the current date and time? Thanks In Advance, Perumal On Jan 19, 10:54 am, Greg KH wrote: > On Mon, Jan 18, 2010 at 6:34 PM, Chew Esmero wrote: > > you can use the __DATE__ & __TIME__ macro.

Re: [android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Greg KH
On Mon, Jan 18, 2010 at 6:34 PM, Chew Esmero wrote: > you can use the __DATE__ & __TIME__ macro. That's only the date and time the code is built, not the current one. > On Jan 19, 10:23 am, perumal316 wrote: >> Hi, >> >> Currently I am writing a loadable kernel module. I want to printk the >> c

[android-kernel] Re: Date&Time in LKM

2010-01-18 Thread perumal316
Thanks alot, I am able to get it work :) On Jan 19, 10:34 am, Chew Esmero wrote: > you can use the __DATE__ & __TIME__ macro. > > On Jan 19, 10:23 am, perumal316 wrote: > > > Hi, > > > Currently I am writing a loadable kernel module. I want to printk the > > current date and time. Is it possible

[android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Chew Esmero
you can use the __DATE__ & __TIME__ macro. On Jan 19, 10:23 am, perumal316 wrote: > Hi, > > Currently I am writing a loadable kernel module. I want to printk the > current date and time. Is it possible? When I searched the net I only > found one explaining about do_gettimeofday() but it is not pr