summaryrefslogtreecommitdiff
path: root/src/check.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-08 18:32:33 +0000
committerStef Walter <stef@memberwebs.com>2008-12-08 18:32:33 +0000
commit41cc7ecf94d5dda9bed3dbd15695aae266b4a3e4 (patch)
tree393fcbee1859423089c8ace314498a1c7cb6ac05 /src/check.c
parent356d3460f2fad27e9f7a9d2cabca2d58eacf356f (diff)
Add verbose -v flag to P11 test.
Diffstat (limited to 'src/check.c')
-rw-r--r--src/check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check.c b/src/check.c
index d51457c..4c71edd 100644
--- a/src/check.c
+++ b/src/check.c
@@ -4,6 +4,8 @@
#include <ctype.h>
#include <stdarg.h>
+int p11t_check_verbose = 0;
+
int
p11t_check_fail(const char *message, ...)
{
@@ -18,6 +20,8 @@ int
p11t_check_info(const char *message, ...)
{
va_list va;
+ if(!p11t_check_verbose)
+ return CONTINUE;
va_start(va, message);
p11t_msg_code("INFO", message, va);
va_end(va);