aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@yahoo.no>2014-03-22 16:52:48 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-03-22 16:55:39 +0100
commit196140dcaff18675cd141487868dd61c6d0df6a7 (patch)
treefec555e3687d5ec4788554bd77bc97085f39d675
parent4ff71183b999761b07d54dd44743a4d59b2dad84 (diff)
polarssl: avoid extra newlines in debug messages
The debug messages printed inside PolarSSL always seems to end with a newline. So 'infof()' should not add one. Besides the trace 'line' should be 'const'.
-rw-r--r--lib/vtls/polarssl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c
index e03135a5b..705805ac7 100644
--- a/lib/vtls/polarssl.c
+++ b/lib/vtls/polarssl.c
@@ -104,7 +104,7 @@ static int entropy_func_mutex(void *data, unsigned char *output, size_t len)
#undef POLARSSL_DEBUG
#ifdef POLARSSL_DEBUG
-static void polarssl_debug(void *context, int level, char *line)
+static void polarssl_debug(void *context, int level, const char *line)
{
struct SessionHandle *data = NULL;
@@ -113,7 +113,8 @@ static void polarssl_debug(void *context, int level, char *line)
data = (struct SessionHandle *)context;
- infof(data, "%s\n", line);
+ infof(data, "%s", line);
+ (void) level;
}
#else
#endif