Re: [Y2038] [PATCH] misc: ibmasm: Replace timeval with timespec64

2015-10-23 Thread Arnd Bergmann
On Friday 23 October 2015 08:55:22 Amitoj Kaur Chawla wrote: > > > > Just to clarify, I should change this to > >sprintf(buf, "%llu.%8.8lu", now.tv_sec, now.tv_nsec / NSEC_PER_USEC); > > > > Sorry, it should be changed to > sprintf(buf, "%llu.%.08lu", (long long)now.tv_sec, now.tv_nsec /

Re: [Y2038] [PATCH] misc: ibmasm: Replace timeval with timespec64

2015-10-22 Thread Amitoj Kaur Chawla
On Fri, Oct 23, 2015 at 12:45 AM, Arnd Bergmann wrote: > On Thursday 22 October 2015 23:09:20 Amitoj Kaur Chawla wrote: >> This patch replaces timeval with timespec64 as 32 bit 'struct timeval' >> will not give current time beyond 2038. >> >> This also changes the code to use