Re: [PATCH] selftests: dmabuf-heaps: print size_t with %zu

From: T.J. Mercier

Date: Tue Nov 03 2026 - 12:34:18 EST


On Tue, Nov 3, 2026 at 7:55 AM Sasha Levin <sashal@xxxxxxxxxx> wrote:
>
> On 32-bit architectures size_t is an unsigned int, and printing it with
> %ld warns:
>
> dmabuf-heap.c:215:43: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
>
> Use %zu.
>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

Reviewed-by: T.J. Mercier <tjmercier@xxxxxxxxxx>