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

From: Petr Mladek

Date: Tue Mar 24 2026 - 09:43:30 EST


On Tue 2026-03-17 17:30:48, 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.
>
> Signed-off-by: Shuvam Pandey <shuvampandey1@xxxxxxxxx>

JFYI, the patch has been comitted into printk/linux.git,
branch for-7.1.

Note that I have removed the last paragraph about validating
as suggested by Andy, see
https://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git/commit/?h=for-7.1&id=f4cf0992be37e6a8bc6cf9108f2c9628a6188381

Best Regards,
Petr