1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-31 20:08:43 +01:00
gnupg/g13
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
..
all-tests.scm tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
backend.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
backend.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
be-dmcrypt.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
be-dmcrypt.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
be-encfs.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
be-encfs.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
be-truecrypt.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
be-truecrypt.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
call-syshelp.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
call-syshelp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
create.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
create.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
encfs-1.5_annotate.diff Add patches for EncFs 2010-11-10 12:49:39 +00:00
encfs-1.7.3_annotate.diff Add patches for EncFs 2010-11-10 12:49:39 +00:00
g13-common.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
g13-common.h Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
g13-syshelp.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
g13-syshelp.h Clean up word replication. 2017-02-21 13:11:46 -05:00
g13.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
g13.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
g13tuple.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
g13tuple.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
keyblob.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
keyblob.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
Makefile.am tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
mount.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
mount.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
mountinfo.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
mountinfo.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
runner.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
runner.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
server.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
server.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
sh-blockdev.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
sh-cmd.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
sh-dmcrypt.c g13: Fix for Solaris. 2017-04-20 20:43:29 +09:00
suspend.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
suspend.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
t-g13tuple.c Remove -I option to common. 2017-03-07 20:25:54 +09:00