diff options
| author | Werner Koch <[email protected]> | 2025-09-23 11:21:08 +0200 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-09-23 11:21:29 +0200 |
| commit | 3cf07222264c1966333429280059dfed917b36e9 (patch) | |
| tree | 785389f3be7ba674f37a70c476bc2b8daa350437 /src | |
| parent | w32: Don't convert slash->backslash when it's under Wine. (diff) | |
| download | libgpg-error-3cf07222264c1966333429280059dfed917b36e9.tar.gz libgpg-error-3cf07222264c1966333429280059dfed917b36e9.zip | |
Silence warnings when enabling the trace functions.
* src/w32-estream.c (reader): Use correct printf format specifiers for
the trace functions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32-estream.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/w32-estream.c b/src/w32-estream.c index 06851a5..08b9b16 100644 --- a/src/w32-estream.c +++ b/src/w32-estream.c @@ -164,7 +164,7 @@ reader (void *arg) nread = ctx->pcookie->next_functions.public.func_read (ctx->pcookie->next_cookie, ctx->buffer + ctx->writepos, nbytes); - trace (("%p: got %d bytes", ctx, nread)); + trace (("%p: got %zd bytes", ctx, nread)); if (nread < 0) { ctx->error_code = (int) errno; @@ -324,7 +324,7 @@ func_w32_pollable_read (void *cookie, void *buffer, size_t count) gpgrt_ssize_t nread; struct reader_context_s *ctx; - trace (("%p: enter buffer=%p count=%u", cookie, buffer, count)); + trace (("%p: enter buffer=%p count=%zu", cookie, buffer, count)); /* FIXME: implement pending check if COUNT==0 */ @@ -348,7 +348,7 @@ func_w32_pollable_read (void *cookie, void *buffer, size_t count) } EnterCriticalSection (&ctx->mutex); - trace (("%p: readpos: %d, writepos %d", cookie, ctx->readpos, ctx->writepos)); + trace (("%p: readpos: %zu, writepos %zu", cookie, ctx->readpos, ctx->writepos)); if (ctx->readpos == ctx->writepos && !ctx->error) { /* No data available. */ @@ -461,11 +461,11 @@ writer (void *arg) } LeaveCriticalSection (&ctx->mutex); - trace (("%p: writing up to %d bytes", ctx, ctx->nbytes)); + trace (("%p: writing up to %zu bytes", ctx, ctx->nbytes)); nwritten = ctx->pcookie->next_functions.public.func_write (ctx->pcookie->next_cookie, ctx->buffer, ctx->nbytes); - trace (("%p: wrote %d bytes", ctx, nwritten)); + trace (("%p: wrote %zd bytes", ctx, nwritten)); if (nwritten < 1) { /* XXX */ @@ -494,7 +494,7 @@ writer (void *arg) WaitForSingleObject (ctx->close_ev, INFINITE); if (ctx->nbytes) - trace (("%p: still %d bytes in buffer at close time", ctx, ctx->nbytes)); + trace (("%p: still %zu bytes in buffer at close time", ctx, ctx->nbytes)); CloseHandle (ctx->close_ev); CloseHandle (ctx->have_data); @@ -610,7 +610,7 @@ func_w32_pollable_write (void *cookie, const void *buffer, size_t count) struct writer_context_s *ctx = pcookie->writer; int nwritten; - trace (("%p: enter buffer: %p count: %d", cookie, buffer, count)); + trace (("%p: enter buffer: %p count: %zu", cookie, buffer, count)); if (count == 0) { nwritten = 0; @@ -629,7 +629,7 @@ func_w32_pollable_write (void *cookie, const void *buffer, size_t count) } EnterCriticalSection (&ctx->mutex); - trace (("%p: buffer: %p, count: %d, nbytes: %d", + trace (("%p: buffer: %p, count: %zu, nbytes: %zu", cookie, buffer, count, ctx->nbytes)); if (!ctx->error && ctx->nbytes) { |
