From 41cc7ecf94d5dda9bed3dbd15695aae266b4a3e4 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 8 Dec 2008 18:32:33 +0000 Subject: Add verbose -v flag to P11 test. --- src/check.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/check.c') 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 #include +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); -- cgit v1.2.3