diff options
author | Werner Koch <[email protected]> | 2018-11-16 15:57:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-11-16 15:57:09 +0000 |
commit | cf423864062a2677d0eeabbb11462a788f527b4c (patch) | |
tree | e00dc76f2a2ffc47858880631ddefe13be13fbd1 /src/posix-io.c | |
parent | core: Remove old debug helper function (diff) | |
download | gpgme-cf423864062a2677d0eeabbb11462a788f527b4c.tar.gz gpgme-cf423864062a2677d0eeabbb11462a788f527b4c.zip |
core: Fix format string errors in trace macros
--
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/posix-io.c')
-rw-r--r-- | src/posix-io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/posix-io.c b/src/posix-io.c index 78f523b1..77ecde05 100644 --- a/src/posix-io.c +++ b/src/posix-io.c @@ -110,7 +110,7 @@ _gpgme_io_read (int fd, void *buffer, size_t count) { int nread; TRACE_BEG (DEBUG_SYSIO, "_gpgme_io_read", fd, - "buffer=%p, count=%u", buffer, count); + "buffer=%p, count=%zu", buffer, count); do { @@ -128,7 +128,7 @@ _gpgme_io_write (int fd, const void *buffer, size_t count) { int nwritten; TRACE_BEG (DEBUG_SYSIO, "_gpgme_io_write", fd, - "buffer=%p, count=%u", buffer, count); + "buffer=%p, count=%zu", buffer, count); TRACE_LOGBUFX (buffer, count); do @@ -427,7 +427,7 @@ get_max_fds (void) } #endif - TRACE (DEBUG_SYSIO, "gpgme:max_fds", 0, "max fds=%i (%s)", fds, source); + TRACE (DEBUG_SYSIO, "gpgme:max_fds", 0, "max fds=%ld (%s)", fds, source); return fds; } @@ -654,7 +654,7 @@ _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock) struct timeval timeout = { 1, 0 }; void *dbg_help = NULL; TRACE_BEG (DEBUG_SYSIO, "_gpgme_io_select", fds, - "nfds=%u, nonblock=%u", nfds, nonblock); + "nfds=%zu, nonblock=%u", nfds, nonblock); FD_ZERO (&readfds); FD_ZERO (&writefds); |