Re: [PATCH] selftests/futex: print tv_sec as long long
From: André Almeida
Date: Mon Nov 09 2026 - 14:29:20 EST
Em 03/11/2026 12:54, Sasha Levin escreveu:
On 32-bit architectures with a 64-bit time_t, such as armhf in DebianReviewed-by: André Almeida <andrealmeid@xxxxxxxxxx>
13, tv_sec is a long long, and printing it with %ld warns:
futex_requeue_pi.c:351:30: warning: format specifies type 'long' but the argument has type '__time64_t' (aka 'long long') [-Wformat]
Cast it to long long and print it with %lld.
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>