[PATCH 19/28] Check logsys_format_set result in logsys setup

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

 



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

diff --git a/exec/logsys.c b/exec/logsys.c
index d4bf392..f524fcd 100644
--- a/exec/logsys.c
+++ b/exec/logsys.c
@@ -368,7 +368,10 @@ int _logsys_system_setup(
 	qb_log_ctl(QB_LOG_BLACKBOX, QB_LOG_CONF_THREADED, QB_FALSE);
 	qb_log_ctl(QB_LOG_BLACKBOX, QB_LOG_CONF_ENABLED, QB_TRUE);
 
-	logsys_format_set(NULL);
+	if (logsys_format_set(NULL) == -1) {
+		return -1;
+	}
+
 	qb_log_tags_stringify_fn_set(_logsys_tags_stringify);
 
 	logsys_loggers[i].init_status = LOGSYS_LOGGER_INIT_DONE;
-- 
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