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/version.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/version.c')
-rw-r--r-- | src/version.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/version.c b/src/version.c index 3bf12e94..5beb63a3 100644 --- a/src/version.c +++ b/src/version.c @@ -202,7 +202,7 @@ gpgme_check_version (const char *req_version) before using the trace facility. If we won't the trace would automagically initialize the debug system with out the locks being initialized and missing the assuan log level setting. */ - TRACE (DEBUG_INIT, "gpgme_check_version", 0, + TRACE (DEBUG_INIT, "gpgme_check_version", NULL, "req_version=%s, VERSION=%s", req_version? req_version:"(null)", VERSION); @@ -229,13 +229,13 @@ gpgme_check_version_internal (const char *req_version, return result; /* Catch-22, see above. */ - TRACE (DEBUG_INIT, "gpgme_check_version_internal", 0, + TRACE (DEBUG_INIT, "gpgme_check_version_internal", NULL, "req_version=%s, offset_sig_validity=%zu", req_version ? req_version : "(null)", offset_sig_validity); if (offset_sig_validity != offsetof (struct _gpgme_signature, validity)) { - TRACE (DEBUG_INIT, "gpgme_check_version_internal", 0, + TRACE (DEBUG_INIT, "gpgme_check_version_internal", NULL, "offset_sig_validity mismatch: expected %i", (int)offsetof (struct _gpgme_signature, validity)); _gpgme_selftest = GPG_ERR_SELFTEST_FAILED; |