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/data.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/data.c')
-rw-r--r-- | src/data.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -353,7 +353,7 @@ gpgme_data_read (gpgme_data_t dh, void *buffer, size_t size) gpgme_ssize_t res; int blankout; TRACE_BEG (DEBUG_DATA, "gpgme_data_read", dh, - "buffer=%p, size=%u", buffer, size); + "buffer=%p, size=%zu", buffer, size); if (!dh) { @@ -376,7 +376,7 @@ gpgme_data_read (gpgme_data_t dh, void *buffer, size_t size) while (res < 0 && errno == EINTR); } - return TRACE_SYSRES (res); + return TRACE_SYSRES ((int)res); } @@ -388,7 +388,7 @@ gpgme_data_write (gpgme_data_t dh, const void *buffer, size_t size) { gpgme_ssize_t res; TRACE_BEG (DEBUG_DATA, "gpgme_data_write", dh, - "buffer=%p, size=%u", buffer, size); + "buffer=%p, size=%zu", buffer, size); if (!dh) { @@ -404,7 +404,7 @@ gpgme_data_write (gpgme_data_t dh, const void *buffer, size_t size) res = (*dh->cbs->write) (dh, buffer, size); while (res < 0 && errno == EINTR); - return TRACE_SYSRES (res); + return TRACE_SYSRES ((int)res); } @@ -415,7 +415,7 @@ gpgme_off_t gpgme_data_seek (gpgme_data_t dh, gpgme_off_t offset, int whence) { TRACE_BEG (DEBUG_DATA, "gpgme_data_seek", dh, - "offset=%lli, whence=%i", offset, whence); + "offset=%lli, whence=%i", (long long int)offset, whence); if (!dh) { @@ -437,7 +437,7 @@ gpgme_data_seek (gpgme_data_t dh, gpgme_off_t offset, int whence) if (offset >= 0) dh->pending_len = 0; - return TRACE_SYSRES (offset); + return TRACE_SYSRES ((int)offset); } |