Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-10-01 Thread Alexandre Belloni
On 01/10/2019 16:33:35+0300, Andy Shevchenko wrote: > On Tue, Oct 01, 2019 at 02:13:21PM +0200, Alexandre Belloni wrote: > > On 01/10/2019 15:11:54+0300, Andy Shevchenko wrote: > > > On Tue, Oct 01, 2019 at 01:48:16PM +0200, Alexandre Belloni wrote: > > > > On 01/10/2019 14:36:55+0300, Andy

Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-10-01 Thread Andy Shevchenko
On Tue, Oct 01, 2019 at 02:13:21PM +0200, Alexandre Belloni wrote: > On 01/10/2019 15:11:54+0300, Andy Shevchenko wrote: > > On Tue, Oct 01, 2019 at 01:48:16PM +0200, Alexandre Belloni wrote: > > > On 01/10/2019 14:36:55+0300, Andy Shevchenko wrote: > > > > On Mon, Sep 30, 2019 at 10:08:09PM

Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-10-01 Thread Alexandre Belloni
On 01/10/2019 15:11:54+0300, Andy Shevchenko wrote: > On Tue, Oct 01, 2019 at 01:48:16PM +0200, Alexandre Belloni wrote: > > On 01/10/2019 14:36:55+0300, Andy Shevchenko wrote: > > > On Mon, Sep 30, 2019 at 10:08:09PM +0200, Alexandre Belloni wrote: > > > > > > Maybe be rtc_str should take a

Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-10-01 Thread Andy Shevchenko
On Tue, Oct 01, 2019 at 01:48:16PM +0200, Alexandre Belloni wrote: > On 01/10/2019 14:36:55+0300, Andy Shevchenko wrote: > > On Mon, Sep 30, 2019 at 10:08:09PM +0200, Alexandre Belloni wrote: > > > > > Maybe be rtc_str should take a struct tm instead of an rtc_time so > > > > > time64_to_rtc_time

Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-10-01 Thread Alexandre Belloni
On 01/10/2019 14:36:55+0300, Andy Shevchenko wrote: > On Mon, Sep 30, 2019 at 10:08:09PM +0200, Alexandre Belloni wrote: > > > > Maybe be rtc_str should take a struct tm instead of an rtc_time so > > > > time64_to_rtc_time always uses time64_to_tm. > > > > > > Because this one, while sounding

Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-10-01 Thread Andy Shevchenko
On Mon, Sep 30, 2019 at 10:08:09PM +0200, Alexandre Belloni wrote: > On 26/07/2019 16:20:37+0300, Andy Shevchenko wrote: > > On Thu, Jan 10, 2019 at 10:58:58PM +0100, Alexandre Belloni wrote: > > > On 08/01/2019 16:25:28+0100, Petr Mladek wrote: > > > > On Fri 2019-01-04 21:30:06, Andy Shevchenko

Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-09-30 Thread Alexandre Belloni
On 26/07/2019 16:20:37+0300, Andy Shevchenko wrote: > On Thu, Jan 10, 2019 at 10:58:58PM +0100, Alexandre Belloni wrote: > > On 08/01/2019 16:25:28+0100, Petr Mladek wrote: > > > On Fri 2019-01-04 21:30:06, Andy Shevchenko wrote: > > > > There are users which print time and date represented by

Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-07-26 Thread Andy Shevchenko
On Thu, Jan 10, 2019 at 10:58:58PM +0100, Alexandre Belloni wrote: > On 08/01/2019 16:25:28+0100, Petr Mladek wrote: > > On Fri 2019-01-04 21:30:06, Andy Shevchenko wrote: > > > There are users which print time and date represented by content of > > > time64_t type in human readable format. > > >

[PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-01-04 Thread Andy Shevchenko
There are users which print time and date represented by content of time64_t type in human readable format. Instead of open coding that each time introduce %ptT[dt][r] specifier. Few test cases for %ptT specifier has been added as well. Cc: Hans Verkuil Cc: Mathias Nyman Cc: Jonathan Corbet