Skip to content
Snippets Groups Projects
Commit 196140dc authored by Gisle Vanem's avatar Gisle Vanem Committed by Daniel Stenberg
Browse files

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'.
parent 4ff71183
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment