Skip to content

Commit

Permalink
fix: FTBFS when UTP_DEBUG_LOGGING is defined
Browse files Browse the repository at this point in the history
Left over from d9d3754 and 4ed4d43.
  • Loading branch information
tearfur committed Jun 20, 2024
1 parent 52645d6 commit 1e7e6c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utp_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2926,14 +2926,14 @@ int utp_process_udp(utp_context *ctx, const byte *buffer, size_t len, const stru
if (ctx->rst_info.size() > RST_INFO_LIMIT) {

#if UTP_DEBUG_LOGGING
ctx->log(UTP_LOG_DEBUG, NULL, "recv not sending RST to non-SYN (limit at %u stored)", (uint)ctx->rst_info.GetCount());
ctx->log(UTP_LOG_DEBUG, NULL, "recv not sending RST to non-SYN (limit at %tu stored)", std::size(ctx->rst_info));
#endif

return 1;
}

#if UTP_DEBUG_LOGGING
ctx->log(UTP_LOG_DEBUG, NULL, "recv send RST to non-SYN (%u stored)", (uint)ctx->rst_info.GetCount());
ctx->log(UTP_LOG_DEBUG, NULL, "recv send RST to non-SYN (%tu stored)", std::size(ctx->rst_info));
#endif

ctx->rst_info.emplace_back(addr, id, seq_nr, ctx->current_ms);
Expand All @@ -2960,7 +2960,7 @@ int utp_process_udp(utp_context *ctx, const byte *buffer, size_t len, const stru
if (ctx->utp_sockets.size() > 3000) {

#if UTP_DEBUG_LOGGING
ctx->log(UTP_LOG_DEBUG, NULL, "rejected incoming connection, too many uTP sockets %d", ctx->utp_sockets->GetCount());
ctx->log(UTP_LOG_DEBUG, NULL, "rejected incoming connection, too many uTP sockets %tu", std::size(ctx->utp_sockets));
#endif

return 1;
Expand Down

0 comments on commit 1e7e6c6

Please sign in to comment.