File pacemaker#3600-0002-Log-scheduler-correct-format-arguments.patch of Package pacemaker.36873
From b9c4207a441694412fa50512c6f155f67273a494 Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Tue, 6 Aug 2024 09:45:29 -0500
Subject: [PATCH 2/2] Log: scheduler: correct format arguments
---
lib/common/rules.c | 4 ++--
lib/pacemaker/pcmk_sched_constraints.c | 2 +-
lib/pacemaker/pcmk_sched_constraints.c | 2 +-
lib/pacemaker/pcmk_sched_utilization.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
Index: pacemaker-2.0.5+20201202.ba59be712/lib/pacemaker/pcmk_sched_constraints.c
===================================================================
--- pacemaker-2.0.5+20201202.ba59be712.orig/lib/pacemaker/pcmk_sched_constraints.c
+++ pacemaker-2.0.5+20201202.ba59be712/lib/pacemaker/pcmk_sched_constraints.c
@@ -399,7 +399,7 @@ unpack_simple_rsc_order(xmlNode * xml_ob
if (rsc_first == NULL) {
pcmk__config_warn("Ignoring constraint '%s' because resource '%s' "
"does not have an instance '%s'",
- "'%s'", id, id_first, instance_first);
+ id, id_first, instance_first);
return FALSE;
}
}
@@ -2523,7 +2523,7 @@ unpack_simple_colocation(xmlNode * xml_o
if (rsc_rh == NULL) {
pcmk__config_warn("Ignoring constraint '%s' because resource '%s' "
"does not have an instance '%s'",
- "'%s'", id, id_rh, instance_rh);
+ id, id_rh, instance_rh);
return FALSE;
}
}
@@ -2902,7 +2902,7 @@ unpack_simple_rsc_ticket(xmlNode * xml_o
if (rsc_lh == NULL) {
pcmk__config_warn("Ignoring constraint '%s' because resource '%s' "
"does not have an instance '%s'",
- "'%s'", id, id_lh, instance_lh);
+ id, id_lh, instance_lh);
return FALSE;
}
}