diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-10-24 09:47:03 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-10-24 09:47:03 +0200 |
commit | 138c046a5ff1b0e532896b4d640c0cba6ead4027 (patch) | |
tree | 2b2b848f2dfe47a80f2f9e46ca94e96ff88c9570 /p11-kit/debug.c | |
parent | 5507dc4946f0a68cece5ec9e7096e0f9b8c55984 (diff) |
More fixes for non-static function names
* See previous commit
* Initialize library before debug statements
Diffstat (limited to 'p11-kit/debug.c')
-rw-r--r-- | p11-kit/debug.c | 7 |
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); } |