From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Wilck Subject: [PATCH v3 20/24] libmultipath: avoid syslog loglevel > LOG_DEBUG Date: Mon, 10 Dec 2018 10:49:55 +0100 Message-ID: <20181210094959.11338-21-mwilck@suse.com> References: <20181210094959.11338-1-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20181210094959.11338-1-mwilck@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui Cc: dm-devel@redhat.com, Martin Wilck List-Id: dm-devel.ids We use condlog(5, ...) in some places, which doesn't work well with syslog. Reviewed-by: Benjamin Marzinski Signed-off-by: Martin Wilck --- libmultipath/log_pthread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libmultipath/log_pthread.c b/libmultipath/log_pthread.c index bb35dfc7..be57bb1a 100644 --- a/libmultipath/log_pthread.c +++ b/libmultipath/log_pthread.c @@ -25,6 +25,9 @@ static int log_messages_pending; void log_safe (int prio, const char * fmt, va_list ap) { + if (prio > LOG_DEBUG) + prio = LOG_DEBUG; + if (log_thr == (pthread_t)0) { vsyslog(prio, fmt, ap); return; -- 2.19.2