File bug-1090538_pacemaker-pengine-fix-swapped-warning-message-arguments-l.patch of Package pacemaker.openSUSE_Leap_42.3_Update
From 29618ef6319272ff875dc117be9f7ad171e1491e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
Date: Tue, 3 Apr 2018 23:53:44 +0200
Subject: [PATCH] High: pengine: fix swapped warning message arguments leading
to segfault
...when triggered. Present since 9cf01f5f9 (or since 1.1.17).
---
lib/pengine/failcounts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pengine/failcounts.c b/lib/pengine/failcounts.c
index 8e2c9a3b1..bb2c8beaf 100644
--- a/lib/pengine/failcounts.c
+++ b/lib/pengine/failcounts.c
@@ -282,7 +282,7 @@ pe_get_failcount(node_t *node, resource_t *rsc, time_t *last_failure,
&& block_failure(node, rsc, xml_op, data_set)) {
pe_warn("Ignoring failure timeout %d for %s because it conflicts with on-fail=block",
- rsc->id, rsc->failure_timeout);
+ rsc->failure_timeout, rsc->id);
rsc->failure_timeout = 0;
}
--
2.13.6