diff options
author | Werner Koch <wk@gnupg.org> | 2019-06-05 15:48:33 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-06-05 15:54:55 +0200 |
commit | 8f9f3224aac78ce9d54e19e73acf7ab659787168 (patch) | |
tree | 4d360f78409119a3acb9b2f26c31e6183bb71292 /src/w32-glib-io.c | |
parent | 856d2e8d64f668855b1c22d3d38fe783904c6c48 (diff) | |
download | gpgme-8f9f3224aac78ce9d54e19e73acf7ab659787168.tar.gz |
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 <wk@gnupg.org>
Diffstat (limited to 'src/w32-glib-io.c')
-rw-r--r-- | src/w32-glib-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32-glib-io.c b/src/w32-glib-io.c index e2e3b8ab..09ffffa2 100644 --- a/src/w32-glib-io.c +++ b/src/w32-glib-io.c @@ -324,7 +324,7 @@ _gpgme_io_write (int fd, const void *buffer, size_t count) chan = find_channel (fd); if (!chan) { - TRACE_LOG ("fd %d: no channel registered"); + TRACE_LOG ("fd=%d: no channel registered"); errno = EINVAL; return -1; } @@ -1067,7 +1067,7 @@ _gpgme_io_connect (int fd, struct sockaddr *addr, int addrlen) return TRACE_SYSRES (-1); } - TRACE_LOG ("connect sockfd=0x%x", sockfd); + TRACE_LOG ("connect socket fd=%d", sockfd); res = connect (sockfd, addr, addrlen); /* FIXME: Error ignored here. */ |