]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
printf: add IPv6 address format tests
authorShuvam Pandey <shuvampandey1@gmail.com>
Tue, 17 Mar 2026 11:45:48 +0000 (17:30 +0545)
committerPetr Mladek <pmladek@suse.com>
Tue, 24 Mar 2026 13:20:19 +0000 (14:20 +0100)
commitf4cf0992be37e6a8bc6cf9108f2c9628a6188381
treef6aefece50a5c8dfd21513e9856da05d6be6a7db
parentdb9571a66156bfbc0273e66e5c77923869bda547
printf: add IPv6 address format tests

printf_kunit already covers IPv4 address formatting, but the ip6()
test case is empty even though printk-formats.rst documents %pI6,
%pi6, %pI6c, and generic %pIS variants.

Add focused IPv6 checks for raw and generic formatting, compressed
output, the single-zero %pI6c corner case, and bracketed port
formatting for sockaddr_in6.

Signed-off-by: Shuvam Pandey <shuvampandey1@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/20260317114548.98919-1-shuvampandey1@gmail.com
[pmladek@suse.com: Removed non-necessary details from the commit message.]
Signed-off-by: Petr Mladek <pmladek@suse.com>
lib/tests/printf_kunit.c