Blame SOURCES/rsyslog-8.24.0-rhbz1497985-journal-reloaded-message.patch

af6c5a
diff -up ./plugins/imjournal/imjournal.c.journal-reloaded ./plugins/imjournal/imjournal.c
af6c5a
--- ./plugins/imjournal/imjournal.c.journal-reloaded	2017-10-09 11:05:53.698885473 -0400
af6c5a
+++ ./plugins/imjournal/imjournal.c	2017-10-09 11:08:54.179885473 -0400
af6c5a
@@ -509,8 +509,7 @@ pollJournal(void)
af6c5a
 		}
af6c5a
 
af6c5a
 		iRet = loadJournalState();
af6c5a
-		errmsg.LogError(0, RS_RET_OK, "imjournal: "
af6c5a
-			"journal reloaded...");	
af6c5a
+		LogMsg(0, RS_RET_OK, LOG_NOTICE, "imjournal: journal reloaded...");
af6c5a
 	} else if (jr < 0) {
af6c5a
 		char errStr[256];
af6c5a
 		rs_strerror_r(errno, errStr, sizeof(errStr));
af6c5a
diff -up ./runtime/errmsg.c.journal-reloaded ./runtime/errmsg.c
af6c5a
--- ./runtime/errmsg.c.journal-reloaded	2016-12-03 12:41:03.000000000 -0500
af6c5a
+++ ./runtime/errmsg.c	2017-10-09 11:05:53.704885473 -0400
af6c5a
@@ -115,7 +115,7 @@ doLogMsg(const int iErrno, const int iEr
af6c5a
  * maps to a specific error event).
af6c5a
  * rgerhards, 2008-06-27
af6c5a
  */
af6c5a
-static void __attribute__((format(printf, 3, 4)))
af6c5a
+void __attribute__((format(printf, 3, 4)))
af6c5a
 LogError(const int iErrno, const int iErrCode, const char *fmt, ... )
af6c5a
 {
af6c5a
 	va_list ap;
af6c5a
@@ -144,7 +144,7 @@ LogError(const int iErrno, const int iEr
af6c5a
  * maps to a specific error event).
af6c5a
  * rgerhards, 2008-06-27
af6c5a
  */
af6c5a
-static void __attribute__((format(printf, 4, 5)))
af6c5a
+void __attribute__((format(printf, 4, 5)))
af6c5a
 LogMsg(const int iErrno, const int iErrCode, const int severity, const char *fmt, ... )
af6c5a
 {
af6c5a
 	va_list ap;
af6c5a
diff -up ./runtime/errmsg.h.journal-reloaded ./runtime/errmsg.h
af6c5a
--- ./runtime/errmsg.h.journal-reloaded	2016-12-03 12:41:03.000000000 -0500
af6c5a
+++ ./runtime/errmsg.h	2017-10-09 11:05:53.704885473 -0400
af6c5a
@@ -44,5 +44,8 @@ ENDinterface(errmsg)
af6c5a
 PROTOTYPEObj(errmsg);
af6c5a
 void resetErrMsgsFlag(void);
af6c5a
 int hadErrMsgs(void);
af6c5a
+void __attribute__((format(printf, 3, 4))) LogError(const int iErrno, const int iErrCode, const char *fmt, ... );
af6c5a
+void __attribute__((format(printf, 4, 5)))
af6c5a
+	LogMsg(const int iErrno, const int iErrCode, const int severity, const char *fmt, ... );
af6c5a
 
af6c5a
 #endif /* #ifndef INCLUDED_ERRMSG_H */