From 22220bda09585239533b6a9fef6de51c1ddc2ae6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 27 Aug 2013 20:54:09 +0200 Subject: 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. --- common/tool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common') 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 -- cgit v1.1