gnupg/scd
Werner Koch b56dfdfc18
Use the gpgrt log functions if possible.
* common/logging.c: Do not build any code if we can use the gpgrt_log
functions.
(log_logv_with_prefix): Rename to log_logv_prefix and change order of
args so that this function matches its printf like counterpart
gpgrt_logv_prefix.  Change all callers.
(log_debug_with_string): Rename to log_debug_string. Change all
callers.
(log_printhex): Move first arg to end so that this function matches
its printf like counterpart gpgrt_log_printhex.  Change all callers.
* common/logging.h: Divert to gpgrt/libgpg-error if we can use the
gpgrt_log functions.
(bug_at): Add inline versions if we can use the gpgrt_log functions.
* configure.ac (GPGRT_ENABLE_LOG_MACROS): Add to AH_BOTTOM.
(mycflags): Add -Wno-format-zero-length.
--

This patch enables the use of the log function from libgpgrt (aka
libgpg-error).  Instead of checking a version number, we enable them
depending on macros set by recent gpg-error versions.  Eventually the
whole divert stuff can be removed.

The -Wno-format-zero-length is required because log_printhex can be
called with an empty format string.  Note that this is fully specified
standard C behaviour.

Signed-off-by: Werner Koch <wk@gnupg.org>
2017-11-27 15:00:25 +01:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
apdu.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
apdu.h scd: Distinguish cancel by user and protocol error. 2017-09-20 10:06:43 +09:00
app-common.h scd: Fix RESET command handling (more). 2017-02-17 11:50:40 +09:00
app-dinsig.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app-geldkarte.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app-help.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app-nks.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app-openpgp.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
app-p15.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
app-sc-hsm.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app.c scd: Enable card removal check after select_application. 2017-11-21 12:19:15 +09:00
atr.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
atr.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ccid-driver.c scd: Enable card removal check after select_application. 2017-11-21 12:19:15 +09:00
ccid-driver.h scd: Fix GetSlotStatus. 2017-01-30 09:32:03 +09:00
command.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
iso7816.c scd: Distinguish cancel by user and protocol error. 2017-09-20 10:06:43 +09:00
iso7816.h scd: Fix API of select_file/_path. 2017-03-06 13:39:46 +09:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c scd: Enable card removal check after select_application. 2017-11-21 12:19:15 +09:00
scdaemon.h scd: Fix regression tracking the connection count. 2017-02-01 08:58:01 +09:00