aboutsummaryrefslogtreecommitdiffstats
path: root/src/debug.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2024-07-05 04:49:26 +0000
committerNIIBE Yutaka <[email protected]>2024-07-05 04:49:26 +0000
commitde6068450094783b9ed68ec9553ea59d02a208ff (patch)
treeac613f2bf31b185c5bd917e05e65e7bbf111055e /src/debug.h
parentRemove ath.h and ath.c. (diff)
downloadgpgme-de6068450094783b9ed68ec9553ea59d02a208ff.tar.gz
gpgme-de6068450094783b9ed68ec9553ea59d02a208ff.zip
Fix printing size_t and off_t value for LLP64 Windows.
* src/debug.h (_trace_sysres_off_t): Use 'z' length specifier. * src/w32-io.c (_gpgme_io_read): Likewise. (writer, _gpgme_io_write): Likewise. -- GnuPG-bug-id: 7187 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.h b/src/debug.h
index 37d58e95..64e049a5 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -164,7 +164,7 @@ static inline gpgme_off_t
_trace_sysres_off_t (gpgme_off_t res, int lvl, const char *func, int line)
{
if (res >= 0)
- _gpgme_debug (NULL, lvl, 3, func, NULL, NULL, "result=%ld", res);
+ _gpgme_debug (NULL, lvl, 3, func, NULL, NULL, "result=%zd", (size_t)res);
else
_gpgme_debug (NULL, lvl, -1, NULL, NULL, NULL,
"%s:%d: error: %s (%d)\n",