summaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-12-01 16:54:35 +0900
committerJinWang An <jinwang.an@samsung.com>2021-12-01 16:54:35 +0900
commitfd5caec0dccd1229c2b9dd5220c8e2b1ef966d0e (patch)
tree9a62094ccb327ef754b15997559dc60fd9b3cc25 /src/debug.c
parent1c25bd8f2d05ddcc1502bc0d59e23e038dfa6d60 (diff)
downloadgpgme-fd5caec0dccd1229c2b9dd5220c8e2b1ef966d0e.tar.gz
gpgme-fd5caec0dccd1229c2b9dd5220c8e2b1ef966d0e.tar.bz2
gpgme-fd5caec0dccd1229c2b9dd5220c8e2b1ef966d0e.zip
Imported Upstream version 1.6.0upstream/1.6.0
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index 292db55..1dd3723 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -46,6 +46,7 @@
#include "util.h"
#include "ath.h"
#include "sema.h"
+#include "sys-util.h"
#include "debug.h"
@@ -207,7 +208,16 @@ debug_init (void)
UNLOCK (debug_lock);
if (debug_level > 0)
- _gpgme_debug (DEBUG_INIT, "gpgme_debug: level=%d\n", debug_level);
+ {
+ _gpgme_debug (DEBUG_INIT, "gpgme_debug: level=%d\n", debug_level);
+#ifdef HAVE_W32_SYSTEM
+ {
+ const char *name = _gpgme_get_inst_dir ();
+ _gpgme_debug (DEBUG_INIT, "gpgme_debug: gpgme='%s'\n",
+ name? name: "?");
+ }
+#endif
+ }
}