From d58e7f8a3136bbda4727dff48b25c20cdb0d3b49 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Sat, 8 Aug 2026 00:27:15 +0300 Subject: [PATCH] thd_gddv: fix building on 32-bit systems Fix the error caused by type mismatch: src/thd_gddv.cpp: In member function 'int cthd_gddv::evaluate_condition(condition&)': src/thd_gddv.cpp:1721:39: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=] Signed-off-by: Dmitry Baryshkov --- src/thd_gddv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thd_gddv.cpp b/src/thd_gddv.cpp index dc82eb31..e390715a 100644 --- a/src/thd_gddv.cpp +++ b/src/thd_gddv.cpp @@ -1738,7 +1738,7 @@ int cthd_gddv::evaluate_condition(struct condition& condition) { return ret; if (condition.time) { - thd_log_debug("time condition matched %ld \n", condition.state_entry_time); + thd_log_debug("time condition matched %jd \n", (intmax_t)condition.state_entry_time); if (condition.state_entry_time == 0) { condition.state_entry_time = time(nullptr); return THD_ERROR;