This commit is contained in:
Markus Makela 2014-10-01 14:38:15 +03:00
commit 856448500e
2 changed files with 11 additions and 6 deletions

View File

@ -755,7 +755,12 @@ static int logmanager_write_log(
break;
}
}
wp[safe_str_len-1] = '\n';
/** remove double line feed */
if (wp[safe_str_len-2] == '\n')
{
wp[safe_str_len-2]=' ';
}
wp[safe_str_len-1] = '\n';
blockbuf_unregister(bb);
/**

View File

@ -119,15 +119,16 @@ static void slist_add_node(
slist_t* list,
slist_node_t* node);
#if defined(NOT_USED)
static slist_node_t* slist_node_get_next(
slist_node_t* curr_node);
static slist_node_t* slist_get_first(
slist_t* list);
static slist_cursor_t* slist_get_cursor(
slist_t* list);
#endif /*< NOT_USED */
static bool file_write_header(skygw_file_t* file);
static void simple_mutex_free_memory(simple_mutex_t* sm);
static void mlist_free_memory(mlist_t* ml, char* name);
@ -740,7 +741,7 @@ static void slist_add_node(
}
#if defined(NOT_USED)
static slist_node_t* slist_node_get_next(
slist_node_t* curr_node)
{
@ -766,7 +767,6 @@ static slist_node_t* slist_get_first(
return NULL;
}
static slist_cursor_t* slist_get_cursor(
slist_t* list)
{
@ -777,7 +777,7 @@ static slist_cursor_t* slist_get_cursor(
c = slist_cursor_init(list);
return c;
}
#endif /*< NOT_USED */
static slist_cursor_t* slist_cursor_init(
slist_t* list)