From: Juanma Barranquero <lekktu@gmail.com>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: Christoph Scholtes <cschol2112@googlemail.com>, 9059@debbugs.gnu.org
Subject: bug#9059: 24.0.50; Logging in init_gnutls_functions does not adhere to gnutls_log_level
Date: Wed, 13 Jul 2011 18:58:24 +0200 [thread overview]
Message-ID: <CAAeL0SS=jr54W06OMfcJcCdsnzZeHWw67meRWOE1uPXRaPS_1w@mail.gmail.com> (raw)
In-Reply-To: <m3sjqayweb.fsf@quimbies.gnus.org>
On Wed, Jul 13, 2011 at 18:31, Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
> Juanma, you did the Windows parts of gnutls.c, so could you look at
> this?
Would the following patch be enough?
Juanma
=== modified file 'src/gnutls.c'
--- src/gnutls.c 2011-07-05 09:51:56 +0000
+++ src/gnutls.c 2011-07-13 16:51:53 +0000
@@ -143,10 +143,12 @@
init_gnutls_functions (Lisp_Object libraries)
{
HMODULE library;
+ Lisp_Object gnutls_log_level = Fsymbol_value (Qgnutls_log_level);
+ int max_log_level = 1;
if (!(library = w32_delayed_load (libraries, Qgnutls_dll)))
{
- GNUTLS_LOG (1, 1, "GnuTLS library not found");
+ GNUTLS_LOG (1, max_log_level, "GnuTLS library not found");
return 0;
}
@@ -189,7 +191,10 @@
LOAD_GNUTLS_FN (library, gnutls_x509_crt_import);
LOAD_GNUTLS_FN (library, gnutls_x509_crt_init);
- GNUTLS_LOG2 (1, 1, "GnuTLS library loaded:",
+ if (NUMBERP (gnutls_log_level))
+ max_log_level = XINT (gnutls_log_level);
+
+ GNUTLS_LOG2 (1, max_log_level, "GnuTLS library loaded:",
SDATA (Fget (Qgnutls_dll, QCloaded_from)));
return 1;
}
next prev parent reply other threads:[~2011-07-13 16:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-12 3:25 bug#9059: 24.0.50; Logging in init_gnutls_functions does not adhere to gnutls_log_level Christoph Scholtes
2011-07-13 16:31 ` Lars Magne Ingebrigtsen
2011-07-13 16:58 ` Juanma Barranquero [this message]
2011-07-13 17:00 ` Lars Magne Ingebrigtsen
2011-07-13 20:35 ` Juanma Barranquero
2011-07-16 22:06 ` Christoph Scholtes
2011-07-16 22:20 ` Sean Sieger
2011-07-16 22:50 ` Lars Magne Ingebrigtsen
2011-07-16 23:07 ` Christoph Scholtes
2011-07-16 23:27 ` Lars Magne Ingebrigtsen
2011-07-16 23:30 ` Juanma Barranquero
2011-07-16 23:36 ` Lars Magne Ingebrigtsen
2011-07-16 23:40 ` Lars Magne Ingebrigtsen
2011-07-16 23:41 ` Juanma Barranquero
2011-07-16 23:44 ` Lars Magne Ingebrigtsen
2011-07-17 15:54 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAeL0SS=jr54W06OMfcJcCdsnzZeHWw67meRWOE1uPXRaPS_1w@mail.gmail.com' \
--to=lekktu@gmail.com \
--cc=9059@debbugs.gnu.org \
--cc=cschol2112@googlemail.com \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.