diff options
author | Werner Koch <[email protected]> | 2018-11-02 08:03:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-11-02 08:03:43 +0000 |
commit | 337c10825525d4084f3f437fde5af3806707e6a4 (patch) | |
tree | f4ee8b556665f005dc548ab0a007d521b64ff7de /src/posix-io.c | |
parent | w32: Fix and improve CancelSynchronousIo use. (diff) | |
download | gpgme-337c10825525d4084f3f437fde5af3806707e6a4.tar.gz gpgme-337c10825525d4084f3f437fde5af3806707e6a4.zip |
core: Print a dump of the I/O data only at level 8.
* src/debug.h (TRACE_SUC3): New.
(TRACE_LOGBUFX): New.
* src/posix-io.c: Use TRACE_LOGBUFX instead of TRACE_LOGBUF.
* src/w32-glib-io.c: Ditto.
--
This will also be changed for w32-io as part of another commit.
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 0448d296..322c41a8 100644 --- a/src/posix-io.c +++ b/src/posix-io.c @@ -117,7 +117,7 @@ _gpgme_io_read (int fd, void *buffer, size_t count) } while (nread == -1 && errno == EINTR); - TRACE_LOGBUF (buffer, nread); + TRACE_LOGBUFX (buffer, nread); return TRACE_SYSRES (nread); } @@ -128,7 +128,7 @@ _gpgme_io_write (int fd, const void *buffer, size_t count) int nwritten; TRACE_BEG2 (DEBUG_SYSIO, "_gpgme_io_write", fd, "buffer=%p, count=%u", buffer, count); - TRACE_LOGBUF (buffer, count); + TRACE_LOGBUFX (buffer, count); do { @@ -785,7 +785,7 @@ _gpgme_io_recvmsg (int fd, struct msghdr *msg, int flags) while (nr > 0) { int len = nr > iov->iov_len ? iov->iov_len : nr; - TRACE_LOGBUF (msg->msg_iov->iov_base, len); + TRACE_LOGBUFX (msg->msg_iov->iov_base, len); iov++; nr -= len; } @@ -816,7 +816,7 @@ _gpgme_io_sendmsg (int fd, const struct msghdr *msg, int flags) while (nwritten > 0) { int len = nwritten > iov->iov_len ? iov->iov_len : nwritten; - TRACE_LOGBUF (msg->msg_iov->iov_base, len); + TRACE_LOGBUFX (msg->msg_iov->iov_base, len); iov++; nwritten -= len; } |