diff options
| author | Petr Mladek <[email protected]> | 2021-06-29 07:51:45 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2021-06-29 07:51:45 +0000 |
| commit | 80ae552917228b97ca9f7df83f74ac306d6fd68f (patch) | |
| tree | 858aac1d82608e0caaaa994a8bf1b19dd5282f06 /lib/test_printf.c | |
| parent | printk: Remove trailing semicolon in macros (diff) | |
| parent | usb: host: xhci-tegra: Switch to use %ptTs (diff) | |
| download | kernel-80ae552917228b97ca9f7df83f74ac306d6fd68f.tar.gz kernel-80ae552917228b97ca9f7df83f74ac306d6fd68f.zip | |
Merge branch 'for-5.14-vsprintf-pts' into for-linus
Diffstat (limited to 'lib/test_printf.c')
| -rw-r--r-- | lib/test_printf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/test_printf.c b/lib/test_printf.c index 27b964ec723d..69b04b531492 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -528,6 +528,11 @@ time_and_date(void) test("0119-00-04T15:32:23", "%ptTr", &t); test("15:32:23|2019-01-04", "%ptTt|%ptTd", &t, &t); test("15:32:23|0119-00-04", "%ptTtr|%ptTdr", &t, &t); + + test("2019-01-04 15:32:23", "%ptTs", &t); + test("0119-00-04 15:32:23", "%ptTsr", &t); + test("15:32:23|2019-01-04", "%ptTts|%ptTds", &t, &t); + test("15:32:23|0119-00-04", "%ptTtrs|%ptTdrs", &t, &t); } static void __init |
