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