diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-12-23 14:11:00 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2019-01-04 15:12:04 +0100 |
commit | 0dd62395788ae566d3adef967611bce214a04435 (patch) | |
tree | 4181770abf1ebf40ebeb2a58fad7a468912a434b /common | |
parent | 95faa51a23fc416e718dbd740adfce31f642530b (diff) |
trust: Propagate library verbosity to module through init_args
Previously, even when the -v option is used with the 'trust' command,
the messages from p11-kit-trust.so module were suppressed because the
verbosity setting is not propagated to the module.
Diffstat (limited to 'common')
-rw-r--r-- | common/message.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/message.c b/common/message.c index f9d4f57..e439def 100644 --- a/common/message.c +++ b/common/message.c @@ -58,7 +58,7 @@ #include <stdio.h> #include <string.h> -static bool print_messages = false; +bool p11_print_messages = false; #ifdef HAVE_STRERROR_L locale_t p11_message_locale = (locale_t) 0; @@ -148,7 +148,7 @@ p11_message (const char* msg, buffer[length] = 0; /* If printing is not disabled, just print out */ - if (print_messages) + if (p11_print_messages) fprintf (stderr, "p11-kit: %s\n", buffer); else p11_debug_message (P11_DEBUG_LIB, "message: %s", buffer); @@ -158,13 +158,13 @@ p11_message (const char* msg, void p11_message_quiet (void) { - print_messages = false; + p11_print_messages = false; } void p11_message_loud (void) { - print_messages = true; + p11_print_messages = true; } const char * |