https://bugs.gentoo.org/981480 https://github.com/FreeRDP/FreeRDP/pull/13283 From 6055267480f91dcdfd2060922af778d152a5662a Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 26 Aug 2026 22:06:58 +0200 Subject: [PATCH] [debug,logs] fix warnings and errors WITH_DEBUG_ALL --- client/common/client_cliprdr_file.c | 4 ++-- libfreerdp/codec/include/bitmap.h | 3 ++- libfreerdp/core/server.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/common/client_cliprdr_file.c b/client/common/client_cliprdr_file.c index 5095ab856c75..947bda8cb834 100644 --- a/client/common/client_cliprdr_file.c +++ b/client/common/client_cliprdr_file.c @@ -998,7 +998,7 @@ static BOOL request_file_range_async(CliprdrFileContext* file_context, CliprdrFu // NOLINTBEGIN(clang-analyzer-unix.Malloc) DEBUG_CLIPRDR( file_context->log, - "Requested file range (%zu Bytes at offset %lu) for file \"%s\" with stream id %u", + "Requested file range (%zu Bytes at offset %ld) for file \"%s\" with stream id %u", requested_size, offset, fuse_file->filename, fuse_request->stream_id); return TRUE; @@ -1104,7 +1104,7 @@ static void cliprdr_file_fuse_readdir(fuse_req_t fuse_req, fuse_ino_t fuse_ino, return; } - DEBUG_CLIPRDR(file_context->log, "Reading directory \"%s\" at offset %lu", + DEBUG_CLIPRDR(file_context->log, "Reading directory \"%s\" at offset %ld", fuse_file->filename_with_root, offset); if ((offset < 0) || ((size_t)offset >= ArrayList_Count(fuse_file->children))) diff --git a/libfreerdp/codec/include/bitmap.h b/libfreerdp/codec/include/bitmap.h index 07874dade123..f180fb5abb15 100644 --- a/libfreerdp/codec/include/bitmap.h +++ b/libfreerdp/codec/include/bitmap.h @@ -153,7 +153,8 @@ static inline BOOL RLEDECOMPRESS(const BYTE* WINPR_RESTRICT pbSrcBuffer, UINT32 code = ExtractCodeId(*pbSrc); #if defined(WITH_DEBUG_CODECS) - WLog_VRB(TAG, "pbSrc=%p code=%s, rem=%" PRIuz, pbSrc, rle_code_str(code), pbEnd - pbSrc); + WLog_VRB(TAG, "pbSrc=%p code=%s, rem=%ld", (const void*)pbSrc, rle_code_str(code), + pbEnd - pbSrc); #endif /* Handle Background Run Orders. */ diff --git a/libfreerdp/core/server.c b/libfreerdp/core/server.c index 9183843f9375..f5a06553eb6c 100644 --- a/libfreerdp/core/server.c +++ b/libfreerdp/core/server.c @@ -375,7 +375,7 @@ static BOOL wts_read_drdynvc_pdu_ready(rdpPeerChannel* channel, wStream* s, UINT return FALSE; DEBUG_DVC("Cmd %s ChannelId %" PRIu32 " length %" PRIuz "", drdynvc_get_packet_type(Cmd), - ChannelId, length); + ChannelId, Stream_GetRemainingLength(s)); table = channel->vcm->dynamicVirtualChannels; if (!table) return FALSE;