Re: [PATCH] selftests: mptcp: pm_nl_ctl: print sizeof() with %zu

From: Matthieu Baerts

Date: Tue Nov 03 2026 - 12:25:44 EST


Hi Sasha,

On 03/11/2026 16:55, Sasha Levin wrote:
> On 32-bit architectures size_t is an unsigned int, and printing
> sizeof(struct nlmsgerr) with %ld warns:
>
> pm_nl_ctl.c:73:71: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'unsigned int' [-Wformat=]
>
> Use %zu.

Thank you for the fix, it looks good to me:

Reviewed-by: Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx>

@Net maintainers: please apply this patch to net-next directly.

Cheers,
Matt
--
Sponsored by the NGI0 Core fund.