[PATCH 2/2] Remove newline in logsys_config_file_set_unlocked

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also remove commented leftover.

Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 exec/logsys.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/exec/logsys.c b/exec/logsys.c
index baaae51..c7a3b8b 100644
--- a/exec/logsys.c
+++ b/exec/logsys.c
@@ -169,7 +169,7 @@ static int logsys_config_file_set_unlocked (
 	if (strlen(file) >= PATH_MAX) {
 		snprintf (error_string_response,
 			sizeof(error_string_response),
-			"%s: logfile name exceed maximum system filename lenght\n",
+			"%s: logfile name exceed maximum system filename lenght",
 			logsys_loggers[subsysid].subsys);
 		*error_string = error_string_response;
 		return (-1);
@@ -190,7 +190,7 @@ static int logsys_config_file_set_unlocked (
 	if (logsys_loggers[subsysid].logfile == NULL) {
 		snprintf (error_string_response,
 			sizeof(error_string_response),
-			"Unable to allocate memory for logfile '%s'\n",
+			"Unable to allocate memory for logfile '%s'",
 			file);
 		*error_string = error_string_response;
 		return (-1);
@@ -221,7 +221,7 @@ static int logsys_config_file_set_unlocked (
 		logsys_loggers[subsysid].logfile = NULL;
 		snprintf (error_string_response,
 			sizeof(error_string_response),
-			"Can't open logfile '%s' for reason: %s (%d).\n",
+			"Can't open logfile '%s' for reason: %s (%d)",
 			 file, error_ptr, err);
 		*error_string = error_string_response;
 		return (-1);
@@ -620,8 +620,6 @@ int logsys_format_set (const char *format)
 		syslog_format[w] = format_buffer[c];
 		w++;
 	}
-//	printf("normal_format: %s\n", format_buffer);
-//	printf("syslog_format: %s\n", syslog_format);
 	qb_log_format_set(QB_LOG_SYSLOG, syslog_format);
 
 	return ret;
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux