lib/vsprintf: Print time64_t in human readable format
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Apr 2020 17:00:44 +0000 (20:00 +0300)
committerPetr Mladek <pmladek@suse.com>
Wed, 20 May 2020 12:54:18 +0000 (14:54 +0200)
commit7daac5b2fdf88e3c3e84cf0d577f524beb0244ab
treea7e917835198b50771bbdc8a31418696316c4798
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
lib/vsprintf: Print time64_t in human readable format

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.

Link: https://lore.kernel.org/r/20200415170046.33374-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Rewieved-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Documentation/core-api/printk-formats.rst
lib/test_printf.c
lib/vsprintf.c