From dcd075d94c6192b74b8a4eac0c5bd1e1b93b69a1 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 17 Feb 2025 14:50:43 +0100 Subject: [PATCH] util/types: fix print format string Let's cast it to the longest type which works on 32bit and 64bit. Signed-off-by: Daniel Wagner --- util/types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/types.c b/util/types.c index a34479a5..0c58f175 100644 --- a/util/types.c +++ b/util/types.c @@ -179,7 +179,7 @@ int convert_ts(time_t time, char *ts_buf) gmtime_r((const time_t *)&time_human, &time_info); strftime(buf, sizeof(buf), "%Y-%m-%dD|%H:%M:%S", &time_info); - sprintf(ts_buf, "%s:%03ld", buf, time_ms); + sprintf(ts_buf, "%s:%03llu", buf, (unsigned long long)time_ms); return 0; } -- 2.50.1