diff options
author | Werner Koch <[email protected]> | 2019-06-05 13:48:33 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-06-05 13:54:55 +0000 |
commit | 8f9f3224aac78ce9d54e19e73acf7ab659787168 (patch) | |
tree | 4d360f78409119a3acb9b2f26c31e6183bb71292 /src/data.c | |
parent | core: Avoid explicit locks in the debug code. (diff) | |
download | gpgme-8f9f3224aac78ce9d54e19e73acf7ab659787168.tar.gz gpgme-8f9f3224aac78ce9d54e19e73acf7ab659787168.zip |
core: Improve the debug messages even more.
* src/debug.c (_gpgme_debug): Add arg LINE. Chnage all callers.
(_gpgme_debug_begin): Remove.
* src/debug.h (TRACE_SEQ): Use the LINE arg of _gpgme_debug.
--
This includes chnages to always print fds in decimal as weel as
tweaking the TARCE_SEQ function to make use of the new machinery.
The standard 'tag' can now always be NULL and no tag information will
be printed.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/data.c')
-rw-r--r-- | src/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -574,7 +574,7 @@ _gpgme_data_inbound_handler (void *opaque, int fd) char *bufp = buffer; gpgme_ssize_t buflen; TRACE_BEG (DEBUG_CTX, "_gpgme_data_inbound_handler", dh, - "fd=0x%x", fd); + "fd=%d", fd); buflen = _gpgme_io_read (fd, buffer, BUFFER_SIZE); if (buflen < 0) @@ -605,7 +605,7 @@ _gpgme_data_outbound_handler (void *opaque, int fd) gpgme_data_t dh = (gpgme_data_t) data->handler_value; gpgme_ssize_t nwritten; TRACE_BEG (DEBUG_CTX, "_gpgme_data_outbound_handler", dh, - "fd=0x%x", fd); + "fd=%d", fd); if (!dh->pending_len) { |