[git] GPGME - branch, master, updated. gpgme-1.5.1-12-g8031341

by Werner Koch cvs at cvs.gnupg.org
Thu Nov 6 15:59:11 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  8031341283f4fcb1f226aa6f66bc5a6042586815 (commit)
      from  4027a0a89724df3aeef8a964c529548d724b6a5a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8031341283f4fcb1f226aa6f66bc5a6042586815
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Nov 6 15:59:06 2014 +0100

    Improve the debug output a bit.
    
    * src/debug.h (TRACE_ERR): Include the line number in the output.

diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index b23e7b1..45c359d 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -6089,7 +6089,8 @@ may use @acronym{GPGME}'s built in trace feature.  This feature is
 either enabled using the environment variable @code{GPGME_DEBUG} or,
 if this is not possible, by calling the function
 @code{gpgme_set_global_flag}.  The value is the trace level and
-an optional file name.
+an optional file name.  If no file name is given the trace output is
+printed to @code{stderr}.
 
 @noindent
 For example
diff --git a/src/debug.h b/src/debug.h
index c99b700..d0db573 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -187,8 +187,8 @@ _gpgme_trace_gpgme_error (gpgme_error_t err, const char *file, int line)
 
 #define TRACE_ERR(err)							\
   err == 0 ? (TRACE_SUC ()) :						\
-    (_gpgme_debug (_gpgme_trace_level, "%s: error: %s <%s>\n",		\
-		   _gpgme_trace_func, gpgme_strerror (err),		\
+    (_gpgme_debug (_gpgme_trace_level, "%s:%d: error: %s <%s>\n",	\
+		   _gpgme_trace_func, __LINE__,  gpgme_strerror (err),  \
 		   gpgme_strsource (err)), _gpgme_debug_frame_end (), (err))
 /* The cast to void suppresses GCC warnings.  */
 #define TRACE_SYSRES(res)						\

-----------------------------------------------------------------------

Summary of changes:
 doc/gpgme.texi |    3 ++-
 src/debug.h    |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list