commit d796de4309df73c4d70255c470d9aae418f100a4
parent 509c5dd803e186de2bac04a6e362cd4a80127e50
Author: Alexander Hansen Færøy <ahf@torproject.org>
Date: Thu, 12 Feb 2026 00:30:11 +0100
Replace "%zu" usage with "%"TOR_PRIuSZ macro usage.
Diffstat:
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/core/or/conflux.c b/src/core/or/conflux.c
@@ -906,7 +906,8 @@ conflux_process_relay_msg(conflux_t *cfx, circuit_t *in_circ,
static ratelim_t rlimit = RATELIM_INIT(60 * 60);
log_fn_ratelim(&rlimit, LOG_WARN, LD_CIRC,
"Conflux OOO queue is at maximum. Currently at "
- "%zu bytes, maximum allowed is %u bytes. Closing.",
+ "%"TOR_PRIuSZ " bytes, maximum allowed is %u bytes. "
+ "Closing.",
cfx->ooo_q_alloc_cost, conflux_params_get_max_oooq());
circuit_mark_for_close(in_circ, END_CIRC_REASON_RESOURCELIMIT);
return false;
diff --git a/src/core/or/relay.c b/src/core/or/relay.c
@@ -2889,8 +2889,9 @@ cell_queues_check_size(void)
alloc -= removed;
static ratelim_t hs_cache_oom_ratelim = RATELIM_INIT(600);
log_fn_ratelim(&hs_cache_oom_ratelim, LOG_NOTICE, LD_REND,
- "HSDir cache exceeded limit (%zu > %"PRIu64" bytes). "
- "Pruned %zu bytes during cell_queues_check_size.",
+ "HSDir cache exceeded limit "
+ "(%"TOR_PRIuSZ " > %"PRIu64 " bytes). "
+ "Pruned %"TOR_PRIuSZ " bytes during cell_queues_check_size.",
hs_cache_total, hs_cache_get_max_bytes(), removed);
}
if (geoip_client_cache_total > get_options()->MaxMemInQueues / 5) {
diff --git a/src/feature/hs/hs_cache.c b/src/feature/hs/hs_cache.c
@@ -170,8 +170,9 @@ cache_store_v3_as_dir(hs_cache_dir_descriptor_t *desc)
size_t removed = hs_cache_handle_oom(bytes_to_remove);
static ratelim_t hs_cache_oom_ratelim = RATELIM_INIT(600);
log_fn_ratelim(&hs_cache_oom_ratelim, LOG_NOTICE, LD_REND,
- "HSDir cache exceeded limit (%zu > %zu bytes). "
- "Pruned %zu bytes during an HS descriptor upload.",
+ "HSDir cache exceeded limit "
+ "(%"TOR_PRIuSZ " > %"TOR_PRIuSZ " bytes). "
+ "Pruned %"TOR_PRIuSZ " bytes during an HS descriptor upload.",
current_cache_bytes, max_cache_bytes, removed);
}