diff options
Diffstat (limited to 'agent')
-rw-r--r-- | agent/agent.h | 2 | ||||
-rw-r--r-- | agent/gpg-agent.c | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/agent/agent.h b/agent/agent.h index 2dfbf5cee..89dc46d05 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -168,7 +168,6 @@ struct /* Bit values for the --debug option. */ -#define DBG_COMMAND_VALUE 1 /* debug commands i/o */ #define DBG_MPI_VALUE 2 /* debug mpi details */ #define DBG_CRYPTO_VALUE 4 /* debug low level crypto */ #define DBG_MEMORY_VALUE 32 /* debug memory allocation stuff */ @@ -178,7 +177,6 @@ struct #define DBG_IPC_VALUE 1024 /* Enable Assuan debugging. */ /* Test macros for the debug option. */ -#define DBG_COMMAND (opt.debug & DBG_COMMAND_VALUE) #define DBG_CRYPTO (opt.debug & DBG_CRYPTO_VALUE) #define DBG_MEMORY (opt.debug & DBG_MEMORY_VALUE) #define DBG_CACHE (opt.debug & DBG_CACHE_VALUE) diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 5e2e4bfd7..f4ed6c5c4 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -251,7 +251,6 @@ static ARGPARSE_OPTS opts[] = { /* The list of supported debug flags. */ static struct debug_flags_s debug_flags [] = { - { DBG_COMMAND_VALUE, "command" }, { DBG_MPI_VALUE , "mpi" }, { DBG_CRYPTO_VALUE , "crypto" }, { DBG_MEMORY_VALUE , "memory" }, @@ -520,10 +519,9 @@ set_debug (void) else if (!strcmp (debug_level, "basic") || (numok && numlvl <= 2)) opt.debug = DBG_IPC_VALUE; else if (!strcmp (debug_level, "advanced") || (numok && numlvl <= 5)) - opt.debug = DBG_IPC_VALUE|DBG_COMMAND_VALUE; + opt.debug = DBG_IPC_VALUE; else if (!strcmp (debug_level, "expert") || (numok && numlvl <= 8)) - opt.debug = (DBG_IPC_VALUE|DBG_COMMAND_VALUE - |DBG_CACHE_VALUE); + opt.debug = (DBG_IPC_VALUE | DBG_CACHE_VALUE); else if (!strcmp (debug_level, "guru") || numok) { opt.debug = ~0; |