Home GnuPG
Diffusion GPGME bd24feaa86f8

Trace the use of GPG_ERR_INV_ENGINE.
bd24feaa86f8Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Trace the use of GPG_ERR_INV_ENGINE.

* src/debug.h: Include "gpgme.h"
(_gpgme_trace_gpgme_error): New.
(trace_gpg_error): New macro.  Use it in all files where we return
GPG_ERR_INV_ENGINE; also "include debug.h" as needed.

This is a pretty common error code but often it is hard to figure out
the actual cause. With debug level 4 we now print the file name and
line number where this error code is generated by gpgme. Along with
the git revision printed in the first log lines, this should give us
an easier way to track down the problems related to this error code.

Details

Provenance
wernerAuthored on Oct 19 2012, 11:23 AM
Parents
rM14a8fd4eec12: Avoid warning about initialized but not used variable
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rMbd24feaa86f8: Trace the use of GPG_ERR_INV_ENGINE. (authored by Werner Koch <wk@gnupg.org>).Oct 19 2012, 11:23 AM