summaryrefslogtreecommitdiff
path: root/p11-kit/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/debug.c')
-rw-r--r--p11-kit/debug.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/p11-kit/debug.c b/p11-kit/debug.c
index b332407..6616459 100644
--- a/p11-kit/debug.c
+++ b/p11-kit/debug.c
@@ -60,7 +60,6 @@ static struct DebugKey debug_keys[] = {
};
static int debug_inited = 0;
-static mutex_t debug_mutex;
/* global variable exported in debug.h */
int _p11_debug_current_flags = ~0;
@@ -114,7 +113,6 @@ void
_p11_debug_init (void)
{
_p11_debug_current_flags = parse_environ_flags ();
- _p11_mutex_init (&debug_mutex);
debug_inited = 1;
}
@@ -125,9 +123,6 @@ _p11_debug_message (int flag,
char buffer[512];
va_list args;
- assert (debug_inited);
- _p11_mutex_lock (&debug_mutex);
-
if (flag & _p11_debug_current_flags) {
va_start (args, format);
vsnprintf (buffer, sizeof (buffer), format, args);
@@ -135,6 +130,4 @@ _p11_debug_message (int flag,
va_end (args);
fprintf (stderr, "(p11-kit:%d) %s\n", getpid(), buffer);
}
-
- _p11_mutex_unlock (&debug_mutex);
}