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

From
Matthieu Baerts <matttbe@kernel.org>
Date
2026-11-03 17:10:29
Also in
linux-kselftest, lkml, mptcp
Reply to
Sasha Levin, 2026-11-03
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@kernel.org>

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

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.
Thread (4 messages) 4 messages, 4 authors, last reply 14d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help