mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Rename DBG_ASSUAN to DBG_IPC and add separate DBG_EXTPROG.
* g10/options.h (DBG_EXTPROG_VALUE): Separate from DBG_IPC_VALUE.
This commit is contained in:
parent
2f099eb62a
commit
24a75201da
19 changed files with 47 additions and 53 deletions
|
@ -43,10 +43,6 @@
|
|||
#include "../common/shareddefs.h"
|
||||
#include "host2net.h"
|
||||
|
||||
#ifndef DBG_ASSUAN
|
||||
# define DBG_ASSUAN 1
|
||||
#endif
|
||||
|
||||
#define CONTROL_D ('D' - 'A' + 1)
|
||||
|
||||
|
||||
|
@ -286,7 +282,7 @@ start_agent (ctrl_t ctrl, int for_card)
|
|||
opt.agent_program,
|
||||
opt.lc_ctype, opt.lc_messages,
|
||||
opt.session_env,
|
||||
opt.autostart, opt.verbose, DBG_ASSUAN,
|
||||
opt.autostart, opt.verbose, DBG_IPC,
|
||||
NULL, NULL);
|
||||
if (!opt.autostart && gpg_err_code (rc) == GPG_ERR_NO_AGENT)
|
||||
{
|
||||
|
|
|
@ -131,7 +131,7 @@ create_context (ctrl_t ctrl, assuan_context_t *r_ctx)
|
|||
GPG_ERR_SOURCE_DEFAULT,
|
||||
opt.homedir,
|
||||
opt.dirmngr_program,
|
||||
opt.autostart, opt.verbose, DBG_ASSUAN,
|
||||
opt.autostart, opt.verbose, DBG_IPC,
|
||||
NULL /*gpg_status2*/, ctrl);
|
||||
if (!opt.autostart && gpg_err_code (err) == GPG_ERR_NO_DIRMNGR)
|
||||
{
|
||||
|
|
|
@ -1136,7 +1136,7 @@ set_debug (const char *level)
|
|||
(opt.debug & DBG_HASHING_VALUE)? " hashing":"",
|
||||
(opt.debug & DBG_EXTPROG_VALUE)? " extprog":"",
|
||||
(opt.debug & DBG_CARD_IO_VALUE)? " cardio":"",
|
||||
(opt.debug & DBG_ASSUAN_VALUE )? " assuan":"",
|
||||
(opt.debug & DBG_IPC_VALUE )? " ipc":"",
|
||||
(opt.debug & DBG_CLOCK_VALUE )? " clock":"",
|
||||
(opt.debug & DBG_LOOKUP_VALUE )? " lookup":"");
|
||||
}
|
||||
|
|
|
@ -277,14 +277,11 @@ struct {
|
|||
#define DBG_MEMSTAT_VALUE 128 /* show memory statistics */
|
||||
#define DBG_TRUST_VALUE 256 /* debug the trustdb */
|
||||
#define DBG_HASHING_VALUE 512 /* debug hashing operations */
|
||||
#define DBG_EXTPROG_VALUE 1024 /* debug external program calls */
|
||||
#define DBG_IPC_VALUE 1024 /* debug assuan communication */
|
||||
#define DBG_CARD_IO_VALUE 2048 /* debug smart card I/O. */
|
||||
#define DBG_CLOCK_VALUE 4096
|
||||
#define DBG_LOOKUP_VALUE 8192 /* debug the kety lookup */
|
||||
|
||||
/* Fixme: For now alias this value. */
|
||||
#define DBG_ASSUAN_VALUE DBG_EXTPROG_VALUE
|
||||
|
||||
#define DBG_EXTPROG_VALUE 16384 /* debug external program calls */
|
||||
|
||||
/* Tests for the debugging flags. */
|
||||
#define DBG_PACKET (opt.debug & DBG_PACKET_VALUE)
|
||||
|
@ -293,11 +290,12 @@ struct {
|
|||
#define DBG_CACHE (opt.debug & DBG_CACHE_VALUE)
|
||||
#define DBG_TRUST (opt.debug & DBG_TRUST_VALUE)
|
||||
#define DBG_HASHING (opt.debug & DBG_HASHING_VALUE)
|
||||
#define DBG_EXTPROG (opt.debug & DBG_EXTPROG_VALUE)
|
||||
#define DBG_IPC (opt.debug & DBG_IPC_VALUE)
|
||||
#define DBG_CARD_IO (opt.debug & DBG_CARD_IO_VALUE)
|
||||
#define DBG_ASSUAN (opt.debug & DBG_ASSUAN_VALUE)
|
||||
#define DBG_IPC (opt.debug & DBG_IPC_VALUE)
|
||||
#define DBG_CLOCK (opt.debug & DBG_CLOCK_VALUE)
|
||||
#define DBG_LOOKUP (opt.debug & DBG_LOOKUP_VALUE)
|
||||
#define DBG_EXTPROG (opt.debug & DBG_EXTPROG_VALUE)
|
||||
|
||||
/* FIXME: We need to check whey we did not put this into opt. */
|
||||
#define DBG_MEMORY memory_debug_mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue