diff options
author | Werner Koch <[email protected]> | 2019-05-14 18:03:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-05-15 06:52:21 +0000 |
commit | 6e041b7b356c3adba714e98f4ecf0dd007375390 (patch) | |
tree | ed03847363a22280a31c67d60887be6466ef29ac /sm/keylist.c | |
parent | scd: Fix return value for KEYINFO command. (diff) | |
download | gnupg-6e041b7b356c3adba714e98f4ecf0dd007375390.tar.gz gnupg-6e041b7b356c3adba714e98f4ecf0dd007375390.zip |
sm: Add a couple of debug calls to the keydb module.
* sm/gpgsm.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
(DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
* sm/gpgsm.c: new debug flags "lookup" and "clock"
* sm/keydb.c: Add log_clock calls to most functions.
(keydb_search_desc_dump): New.
(keydb_search) [DBG_LOOKUP]: Print descrh decription.
* sm/keylist.c (list_cert_std): Flush FP in debug mode to better
syncronize the output with the debug output
--
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/keylist.c')
-rw-r--r-- | sm/keylist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/keylist.c b/sm/keylist.c index e242310be..4eecb8720 100644 --- a/sm/keylist.c +++ b/sm/keylist.c @@ -1373,6 +1373,8 @@ list_cert_std (ctrl_t ctrl, ksba_cert_t cert, estream_t fp, int have_secret, else es_fprintf (fp, " [certificate is bad: %s]\n", gpg_strerror (err)); } + if (opt.debug) + es_fflush (fp); } |