aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2025-03-03 10:11:22 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2025-03-03 10:11:22 +0000
commit0aa7d66d9cd95d2a062e57d3f8b03aed7f6ed798 (patch)
treeac6443769b57812eba76ba19d0bd2b4c028ef071
parent9335e580b5f429f2b2d022b7f99efa94769756ae (diff)
downloadrspamd-0aa7d66d9cd95d2a062e57d3f8b03aed7f6ed798.tar.gz
rspamd-0aa7d66d9cd95d2a062e57d3f8b03aed7f6ed798.zip
[Minor] Fix format strings
-rw-r--r--lualib/lua_cache.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_cache.lua b/lualib/lua_cache.lua
index ad4b6546f..3c2061b38 100644
--- a/lualib/lua_cache.lua
+++ b/lualib/lua_cache.lua
@@ -173,7 +173,7 @@ local function cache_get(task, key, cache_context, timeout, callback_uncached, c
-- Set up a timer to probe the key
local function probe_key()
probe_count = probe_count + 1
- lua_util.debugm(N, task, "probe #%d/%d for pending key %s",
+ lua_util.debugm(N, task, "probe #%s/%s for pending key %s",
probe_count, cache_context.opts.cache_probes, full_key)
if probe_count >= cache_context.opts.cache_probes then
@@ -331,7 +331,7 @@ local function cache_del(task, key, cache_context)
lua_util.debugm(N, task, "failed to delete cache key: %s", err)
else
local count = tonumber(result) or 0
- lua_util.debugm(N, task, "successfully deleted cache key %s (%d keys removed)",
+ lua_util.debugm(N, task, "successfully deleted cache key %s (%s keys removed)",
full_key, count)
end
end,