Blob Blame History Raw
From b2ab0f457e4fc594d98379abf2bd92ddc0bc018c 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 53c0f14..e217176 100644
--- a/lib/pengine/failcounts.c
+++ b/lib/pengine/failcounts.c
@@ -268,7 +268,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;
     }
 
-- 
1.8.3.1