lib/vsprintf: Allow to override ISO 8601 date and time separator
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 11 May 2021 15:39:55 +0000 (18:39 +0300)
committerPetr Mladek <pmladek@suse.com>
Mon, 17 May 2021 10:01:26 +0000 (12:01 +0200)
commit20bc8c1e972f29afcac85e524e430c11a6df5f58
treefc428e2db30dba9fcc042df0862d88824b754b94
parent7f3d08b255d1806502e45fe70ca2ba9646eb3aa1
lib/vsprintf: Allow to override ISO 8601 date and time separator

ISO 8601 defines 'T' as a separator between date and time. Though,
some ABIs use time and date with ' ' (space) separator instead.

Add a flavour to the %pt specifier to override default separator.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210511153958.34527-1-andriy.shevchenko@linux.intel.com
Documentation/core-api/printk-formats.rst
lib/test_printf.c
lib/vsprintf.c