Changeset 9ecd212 in mod_gnutls


Ignore:
Timestamp:
Jan 29, 2013, 8:05:42 PM (7 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
032ff02
Parents:
932b68e
git-author:
Daniel Kahn Gillmor <dkg@…> (01/28/13 23:48:49)
git-committer:
Daniel Kahn Gillmor <dkg@…> (01/29/13 20:05:42)
Message:

avoid embedding extra/unnecessary newlines in logs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r932b68e r9ecd212  
    5252#if MOD_GNUTLS_DEBUG
    5353static void gnutls_debug_log_all(int level, const char *str) {
    54     apr_file_printf(debug_log_fp, "<%d> %s\n", level, str);
     54    apr_file_printf(debug_log_fp, "<%d> %s", level, str);
    5555}
    5656#define _gnutls_log apr_file_printf
     
    7676    if (gnutls_check_version(LIBGNUTLS_VERSION) == NULL) {
    7777                ap_log_perror(APLOG_MARK, APLOG_EMERG, 0, plog, "gnutls_check_version() failed. Required: "
    78                                         "gnutls-%s Found: gnutls-%s\n", LIBGNUTLS_VERSION, gnutls_check_version(NULL));
     78                                        "gnutls-%s Found: gnutls-%s", LIBGNUTLS_VERSION, gnutls_check_version(NULL));
    7979        return DONE;
    8080    }
     
    8383    ret = gnutls_global_init();
    8484    if (ret < 0) {
    85                 ap_log_perror(APLOG_MARK, APLOG_EMERG, 0, plog, "gnutls_global_init: %s\n", gnutls_strerror(ret));
     85                ap_log_perror(APLOG_MARK, APLOG_EMERG, 0, plog, "gnutls_global_init: %s", gnutls_strerror(ret));
    8686                return DONE;
    8787    }
     
    9090    ret = gnutls_session_ticket_key_generate(&session_ticket_key);
    9191    if (ret < 0) {
    92                 ap_log_perror(APLOG_MARK, APLOG_EMERG, 0, plog, "gnutls_session_ticket_key_generate: %s\n", gnutls_strerror(ret));
     92                ap_log_perror(APLOG_MARK, APLOG_EMERG, 0, plog, "gnutls_session_ticket_key_generate: %s", gnutls_strerror(ret));
    9393                return DONE;
    9494    }
Note: See TracChangeset for help on using the changeset viewer.