mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-11 22:01:08 +02:00
scd: Fix debug logging of the internal CCID driver.
* scd/ccid-driver.c [GNUPG_MAJOR_VERSION] (DEBUGOUT): Use log_debug. Fixes-commit: 79c99921e35921140c83d7c101829d95f038f3da Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
29c7fb4053
commit
2536bf2761
@ -112,10 +112,15 @@
|
|||||||
#define CCID_CMD_TIMEOUT (5*1000)
|
#define CCID_CMD_TIMEOUT (5*1000)
|
||||||
|
|
||||||
/* Depending on how this source is used we either define our error
|
/* Depending on how this source is used we either define our error
|
||||||
* output to go to stderr or to the GnuPG based logging functions. We
|
* output to go to the GnuPG based logging functions or to stderr. We
|
||||||
* use the latter when GNUPG_SCD_MAIN_HEADER is defined. */
|
* use the former when GNUPG_MAJOR_VERSION or GNUPG_SCD_MAIN_HEADER is
|
||||||
#if defined(GNUPG_SCD_MAIN_HEADER)
|
* defined. */
|
||||||
# include GNUPG_SCD_MAIN_HEADER
|
#if defined(GNUPG_MAJOR_VERSION) || defined(GNUPG_SCD_MAIN_HEADER)
|
||||||
|
# if defined(GNUPG_SCD_MAIN_HEADER)
|
||||||
|
# include GNUPG_SCD_MAIN_HEADER
|
||||||
|
# else /* This is the modularized GnuPG 1.9 or later. */
|
||||||
|
# include "scdaemon.h"
|
||||||
|
# endif
|
||||||
|
|
||||||
# define DEBUGOUT(t) do { if (debug_level) \
|
# define DEBUGOUT(t) do { if (debug_level) \
|
||||||
log_debug (DRVNAME t); } while (0)
|
log_debug (DRVNAME t); } while (0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user