lib: test_scanf: Add tests for sscanf number conversion
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 14 May 2021 16:12:05 +0000 (17:12 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 19 May 2021 13:05:11 +0000 (15:05 +0200)
commit50f530e176eac808e64416732e54c0686ce2c39b
tree7d815b48b9cf02bbb20c3383fee83c594d7a75b5
parent900fdc4573766dd43b847b4f54bd4a1ee2bc7360
lib: test_scanf: Add tests for sscanf number conversion

Adds test_sscanf to test various number conversion cases, as
number conversion was previously broken.

This also tests the simple_strtoxxx() functions exported from
vsprintf.c.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210514161206.30821-3-rf@opensource.cirrus.com
MAINTAINERS
lib/Kconfig.debug
lib/Makefile
lib/test_scanf.c [new file with mode: 0644]