aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2011-07-13 22:33:44 +0200
committerJuanma Barranquero2011-07-13 22:33:44 +0200
commitac389d0c75f29a4c5bdf05c7180cabd96a7ae7e6 (patch)
treec6032b50fb3972c5a1ca89ba6809808528198499 /src
parentbead9a43c1c13b812b4c4f10219a79897e18617d (diff)
downloademacs-ac389d0c75f29a4c5bdf05c7180cabd96a7ae7e6.tar.gz
emacs-ac389d0c75f29a4c5bdf05c7180cabd96a7ae7e6.zip
src/gnutls.c (init_gnutls_functions): Honor gnutls_log_level (bug#9059).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog14
-rw-r--r--src/gnutls.c9
2 files changed, 16 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2721704223c..a045a7ddd21 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-07-13 Juanma Barranquero <lekktu@gmail.com>
2
3 * gnutls.c (init_gnutls_functions): Honor gnutls_log_level (bug#9059).
4
12011-07-13 Eli Zaretskii <eliz@gnu.org> 52011-07-13 Eli Zaretskii <eliz@gnu.org>
2 6
3 * buffer.c (mmap_find): Fix a typo. 7 * buffer.c (mmap_find): Fix a typo.
@@ -16,7 +20,7 @@
16 20
172011-07-13 Paul Eggert <eggert@cs.ucla.edu> 212011-07-13 Paul Eggert <eggert@cs.ucla.edu>
18 22
19 * buffer.c (Fget_buffer_create): Initialized inhibit_shrinking. 23 * buffer.c (Fget_buffer_create): Initialize inhibit_shrinking.
20 The old code sometimes used this field without initializing it. 24 The old code sometimes used this field without initializing it.
21 25
22 * alloc.c (gc_sweep): Don't read past end of array. 26 * alloc.c (gc_sweep): Don't read past end of array.
@@ -26,7 +30,7 @@
262011-07-12 Andreas Schwab <schwab@linux-m68k.org> 302011-07-12 Andreas Schwab <schwab@linux-m68k.org>
27 31
28 * character.c (Fcharacterp): Don't advertise optional ignored 32 * character.c (Fcharacterp): Don't advertise optional ignored
29 argument. (Bug#4026) 33 argument. (Bug#4026)
30 34
312011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org> 352011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
32 36
@@ -240,7 +244,7 @@
240 (char_table_ascii): Uncompress the compressed values. 244 (char_table_ascii): Uncompress the compressed values.
241 (sub_char_table_ref): New arg is_uniprop. Callers changed. 245 (sub_char_table_ref): New arg is_uniprop. Callers changed.
242 Uncompress the compressed values. 246 Uncompress the compressed values.
243 (sub_char_table_ref_and_range): Likewise. 247 (sub_char_table_ref_and_range): Likewise.
244 (char_table_ref_and_range): Uncompress the compressed values. 248 (char_table_ref_and_range): Uncompress the compressed values.
245 (sub_char_table_set): New arg is_uniprop. Callers changed. 249 (sub_char_table_set): New arg is_uniprop. Callers changed.
246 Uncompress the compressed values. 250 Uncompress the compressed values.
@@ -1918,7 +1922,7 @@
1918 (xpm_put_color_table_h): 1922 (xpm_put_color_table_h):
1919 * lisp.h (struct Lisp_Hash_Table): 1923 * lisp.h (struct Lisp_Hash_Table):
1920 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion): 1924 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1921 * print.c (print): Use 'EMACS_UINT' and 'EMACS_INT' 1925 * print.c (print): Use 'EMACS_UINT' and 'EMACS_INT'
1922 for hashes and hash indexes, instead of 'unsigned' and 'int'. 1926 for hashes and hash indexes, instead of 'unsigned' and 'int'.
1923 * alloc.c (allocate_vectorlike): 1927 * alloc.c (allocate_vectorlike):
1924 Check for overflow in vector size calculations. 1928 Check for overflow in vector size calculations.
@@ -2215,7 +2219,7 @@
2215 2219
2216 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row 2220 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
2217 for fringe update if it has periodic bitmap. 2221 for fringe update if it has periodic bitmap.
2218 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset, 2222 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
2219 and fringe_bitmap_periodic_p. 2223 and fringe_bitmap_periodic_p.
2220 2224
2221 * fringe.c (get_fringe_bitmap_data): New function. 2225 * fringe.c (get_fringe_bitmap_data): New function.
diff --git a/src/gnutls.c b/src/gnutls.c
index 76cfa5dcc98..3761951b866 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -143,10 +143,12 @@ static int
143init_gnutls_functions (Lisp_Object libraries) 143init_gnutls_functions (Lisp_Object libraries)
144{ 144{
145 HMODULE library; 145 HMODULE library;
146 Lisp_Object gnutls_log_level = Fsymbol_value (Qgnutls_log_level);
147 int max_log_level = 1;
146 148
147 if (!(library = w32_delayed_load (libraries, Qgnutls_dll))) 149 if (!(library = w32_delayed_load (libraries, Qgnutls_dll)))
148 { 150 {
149 GNUTLS_LOG (1, 1, "GnuTLS library not found"); 151 GNUTLS_LOG (1, max_log_level, "GnuTLS library not found");
150 return 0; 152 return 0;
151 } 153 }
152 154
@@ -189,7 +191,10 @@ init_gnutls_functions (Lisp_Object libraries)
189 LOAD_GNUTLS_FN (library, gnutls_x509_crt_import); 191 LOAD_GNUTLS_FN (library, gnutls_x509_crt_import);
190 LOAD_GNUTLS_FN (library, gnutls_x509_crt_init); 192 LOAD_GNUTLS_FN (library, gnutls_x509_crt_init);
191 193
192 GNUTLS_LOG2 (1, 1, "GnuTLS library loaded:", 194 if (NUMBERP (gnutls_log_level))
195 max_log_level = XINT (gnutls_log_level);
196
197 GNUTLS_LOG2 (1, max_log_level, "GnuTLS library loaded:",
193 SDATA (Fget (Qgnutls_dll, QCloaded_from))); 198 SDATA (Fget (Qgnutls_dll, QCloaded_from)));
194 return 1; 199 return 1;
195} 200}