diff options
-rw-r--r-- | common/debug.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/debug.c b/common/debug.c index 178b6c5..b3327be 100644 --- a/common/debug.c +++ b/common/debug.c @@ -126,15 +126,14 @@ void p11_debug_message (int flag, const char *format, ...) { - char buffer[512]; va_list args; if (flag & p11_debug_current_flags) { + fprintf (stderr, "(p11-kit:%d) ", getpid()); va_start (args, format); - vsnprintf (buffer, sizeof (buffer), format, args); - buffer[sizeof (buffer) -1] = 0; + vfprintf (stderr, format, args); va_end (args); - fprintf (stderr, "(p11-kit:%d) %s\n", getpid(), buffer); + fprintf (stderr, "\n"); } } |