From b03a2647299a6c8764a2574590cbaccdff9e497d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 8 May 2015 16:30:04 +0200 Subject: gpg: Avoid cluttering stdout with trustdb info in verbose mode. * g10/trustdb.c (validate_keys): Call dump_key_array only in debug mode. -- I guess that is a left-over from an early attempt to output information on the trustdb for use by other tools. Maybe related to the former --list-trust-path command. Sending it to stdout is probably useful so we do this now only in debug mode. Signed-off-by: Werner Koch --- g10/trustdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/trustdb.c b/g10/trustdb.c index 6145cf0e9..fda8674cb 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -1895,7 +1895,7 @@ validate_keys (int interactive) ; /* Store the calculated valididation status somewhere */ - if (opt.verbose > 1) + if (opt.verbose > 1 && DBG_TRUST) dump_key_array (depth, keys); for (kar=keys; kar->keyblock; kar++) -- cgit v1.2.3