From 8f9f3224aac78ce9d54e19e73acf7ab659787168 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 5 Jun 2019 15:48:33 +0200 Subject: 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 --- src/data-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/data-compat.c') diff --git a/src/data-compat.c b/src/data-compat.c index 64ed2d28..4960bf49 100644 --- a/src/data-compat.c +++ b/src/data-compat.c @@ -160,7 +160,7 @@ gpgme_error_to_errno (gpgme_error_t err) break; } } - TRACE (DEBUG_DATA, "gpgme:gpgme_error_to_errno", 0, + TRACE (DEBUG_DATA, "gpgme:gpgme_error_to_errno", NULL, "mapping %s <%s> to: %s", gpgme_strerror (err), gpgme_strsource (err), strerror (res)); gpg_err_set_errno (res); -- cgit v1.2.3