summaryrefslogtreecommitdiff
path: root/common/tool.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-08-27 20:54:09 +0200
committerStef Walter <stef@thewalter.net>2013-08-28 13:14:32 +0200
commit22220bda09585239533b6a9fef6de51c1ddc2ae6 (patch)
tree3e34bd6fc0ba77baf0f5f1b957582dcc9390df80 /common/tool.c
parent7f6fd42ea33e09687487e8981e02080c8a6c7b40 (diff)
downloadp11-kit-22220bda09585239533b6a9fef6de51c1ddc2ae6.tar.gz
tool: Only include debug lines marked 'tool' when --verbose
Otherwise we get all sorts of overwhelming internal debugging when someone specifies --verbose argument to a tool.
Diffstat (limited to 'common/tool.c')
-rw-r--r--common/tool.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/tool.c b/common/tool.c
index 70bb4d2..cca18a2 100644
--- a/common/tool.c
+++ b/common/tool.c
@@ -182,8 +182,9 @@ command_usage (const p11_tool_command *commands)
static void
verbose_arg (void)
{
- putenv ("P11_KIT_DEBUG=all");
+ putenv ("P11_KIT_DEBUG=tool");
p11_message_loud ();
+ p11_debug_init ();
}
static void
@@ -191,6 +192,7 @@ quiet_arg (void)
{
putenv ("P11_KIT_DEBUG=");
p11_message_quiet ();
+ p11_debug_init ();
}
int