From b06b58b275ebccf6d7360083708b2614dd75e1b5 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 8 Mar 2013 19:01:44 +0100 Subject: Don't shove messages into debug output if they're already displayed --- common/library.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/library.c b/common/library.c index 64b8baf..e4512a1 100644 --- a/common/library.c +++ b/common/library.c @@ -103,8 +103,8 @@ p11_message (const char* msg, /* If printing is not disabled, just print out */ if (print_messages) fprintf (stderr, "p11-kit: %s\n", buffer); - - p11_debug_message (P11_DEBUG_LIB, "message: %s", buffer); + else + p11_debug_message (P11_DEBUG_LIB, "message: %s", buffer); p11_message_store (buffer, length); } -- cgit v1.1