aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-01-07 15:51:24 +0000
committerWerner Koch <[email protected]>2013-01-07 15:51:24 +0000
commit0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f (patch)
treea65ed0efab34ac3296b69a54d78bfccd1e7d0968 /g10/options.h
parentgpg: Allow searching for user ids in a keybox. (diff)
downloadgnupg-0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f.tar.gz
gnupg-0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f.zip
New function log_clock.
* common/logging.c (log_clock): New. * g10/gpg.c (set_debug): Print clock debug flag. * g10/options.h (DBG_CLOCK_VALUE, DBG_CLOCK): New. -- To actually use log_clock you need to enable the code in logginc.c:log_check() and link against librt. --debug 4096 may then be used to enable it at runtime.
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h
index e67d0ce04..d4824bcf1 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -271,6 +271,7 @@ struct {
#define DBG_HASHING_VALUE 512 /* debug hashing operations */
#define DBG_EXTPROG_VALUE 1024 /* debug external program calls */
#define DBG_CARD_IO_VALUE 2048 /* debug smart card I/O. */
+#define DBG_CLOCK_VALUE 4096
/* Fixme: For now alias this value. */
#define DBG_ASSUAN_VALUE DBG_EXTPROG_VALUE
@@ -286,6 +287,7 @@ struct {
#define DBG_EXTPROG (opt.debug & DBG_EXTPROG_VALUE)
#define DBG_CARD_IO (opt.debug & DBG_CARD_IO_VALUE)
#define DBG_ASSUAN (opt.debug & DBG_ASSUAN_VALUE)
+#define DBG_CLOCK (opt.debug & DBG_CLOCK_VALUE)
/* FIXME: We need to check whey we did not put this into opt. */
#define DBG_MEMORY memory_debug_mode