mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
gpg,sm: Set --verbose and clear --quiet in debug mode.
* g10/gpg.c (set_debug): Tweak options. * sm/gpgsm.c (set_debug): Ditto.
This commit is contained in:
parent
934a60de6b
commit
51edea995d
@ -1368,6 +1368,12 @@ set_debug (const char *level)
|
||||
if (opt.debug)
|
||||
parse_debug_flag (NULL, &opt.debug, debug_flags);
|
||||
|
||||
/* Make sure that we are --verbose in debug mode. */
|
||||
if (opt.debug && !opt.verbose)
|
||||
opt.verbose = 1;
|
||||
if (opt.debug && opt.quiet)
|
||||
opt.quiet = 0;
|
||||
|
||||
if (opt_set_iobuf_size || opt_set_iobuf_size_used)
|
||||
log_debug ("iobuf buffer size is %uk\n",
|
||||
iobuf_set_buffer_size (opt_set_iobuf_size));
|
||||
|
@ -779,6 +779,12 @@ set_debug (void)
|
||||
if (opt.debug)
|
||||
parse_debug_flag (NULL, &opt.debug, debug_flags);
|
||||
|
||||
/* Make sure that we are --verbose in debug mode. */
|
||||
if (opt.debug && !opt.verbose)
|
||||
opt.verbose = 1;
|
||||
if (opt.debug && opt.quiet)
|
||||
opt.quiet = 0;
|
||||
|
||||
/* minip12.c may be used outside of GnuPG, thus we don't have the
|
||||
* opt structure over there. */
|
||||
p12_set_verbosity (opt.verbose);
|
||||
|
Loading…
x
Reference in New Issue
Block a user