From 4db89d7abc8f94dbbe37d8218b63a48b29e971fd Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 2 Sep 2010 17:48:40 +0200 Subject: [PATCH] Remove \n from log messages --- src/modules/rlm_eap/libeap/cb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/rlm_eap/libeap/cb.c b/src/modules/rlm_eap/libeap/cb.c index 72d41d3..ce54f89 100644 --- a/src/modules/rlm_eap/libeap/cb.c +++ b/src/modules/rlm_eap/libeap/cb.c @@ -48,15 +48,15 @@ void cbtls_info(const SSL *s, int where, int ret) buffer[0] = '\0'; if (where & SSL_CB_LOOP) { - RDEBUG2("%s: %s\n", str, state); + RDEBUG2("%s: %s", str, state); } else if (where & SSL_CB_HANDSHAKE_START) { - RDEBUG2("%s: %s\n", str, state); + RDEBUG2("%s: %s", str, state); } else if (where & SSL_CB_HANDSHAKE_DONE) { - RDEBUG2("%s: %s\n", str, state); + RDEBUG2("%s: %s", str, state); } else if (where & SSL_CB_ALERT) { str=(where & SSL_CB_READ)?"read":"write"; - snprintf(buffer, sizeof(buffer), "TLS Alert %s:%s:%s\n", + snprintf(buffer, sizeof(buffer), "TLS Alert %s:%s:%s", str, SSL_alert_type_string_long(ret), SSL_alert_desc_string_long(ret)); @@ -71,7 +71,7 @@ void cbtls_info(const SSL *s, int where, int ret) str, state); } else { snprintf(buffer, sizeof(buffer), - "%s: error in %s\n", str, state); + "%s: error in %s", str, state); } } } -- 2.1.4