summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-08 19:01:44 +0100
committerStef Walter <stefw@gnome.org>2013-03-08 21:38:54 +0100
commitb06b58b275ebccf6d7360083708b2614dd75e1b5 (patch)
treeeb1f3a2723131aac057e06bba44145a96d5ae5ca
parent347ac14998835ee18e5958a8b7c9aa1afec8eaa2 (diff)
downloadp11-kit-b06b58b275ebccf6d7360083708b2614dd75e1b5.tar.gz
Don't shove messages into debug output if they're already displayed
-rw-r--r--common/library.c4
1 files 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);
}