Re: [PATCH] printf: add IPv6 address format tests

From: Andy Shevchenko

Date: Tue Mar 17 2026 - 10:37:03 EST


On Tue, Mar 17, 2026 at 05:30:48PM +0545, Shuvam Pandey wrote:
> 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.

> Validated with the arm64 printf KUnit suite and a W=1 rebuild of
> lib/tests/printf_kunit.o.

No need to put this paragraph into the commit message, it's implied that
the author of the change has validated and tested it beforehand.

Otherwise, test cases are always warmly welcome!
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko