diff --git a/log_manager/log_manager.cc b/log_manager/log_manager.cc index d1be9f310..f690661b6 100644 --- a/log_manager/log_manager.cc +++ b/log_manager/log_manager.cc @@ -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); /** diff --git a/utils/skygw_utils.cc b/utils/skygw_utils.cc index dbd13cc43..7e8407ba7 100644 --- a/utils/skygw_utils.cc +++ b/utils/skygw_utils.cc @@ -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)