File pacemaker#3600-0002-Log-scheduler-correct-format-arguments.patch of Package pacemaker.36871
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_colocation.c | 2 +-
lib/pacemaker/pcmk_sched_tickets.c | 2 +-
lib/pacemaker/pcmk_sched_utilization.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
Index: pacemaker-2.1.2+20211124.ada5c3b36/lib/pacemaker/pcmk_sched_colocation.c
===================================================================
--- pacemaker-2.1.2+20211124.ada5c3b36.orig/lib/pacemaker/pcmk_sched_colocation.c
+++ pacemaker-2.1.2+20211124.ada5c3b36/lib/pacemaker/pcmk_sched_colocation.c
@@ -537,7 +537,7 @@ unpack_simple_colocation(xmlNode *xml_ob
if (primary == NULL) {
pcmk__config_warn("Ignoring constraint '%s' because resource '%s' "
"does not have an instance '%s'",
- "'%s'", id, primary_id, primary_instance);
+ id, primary_id, primary_instance);
return;
}
}
Index: pacemaker-2.1.2+20211124.ada5c3b36/lib/pacemaker/pcmk_sched_tickets.c
===================================================================
--- pacemaker-2.1.2+20211124.ada5c3b36.orig/lib/pacemaker/pcmk_sched_tickets.c
+++ pacemaker-2.1.2+20211124.ada5c3b36/lib/pacemaker/pcmk_sched_tickets.c
@@ -327,7 +327,7 @@ unpack_simple_rsc_ticket(xmlNode *xml_ob
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;
}
}
Index: pacemaker-2.1.2+20211124.ada5c3b36/lib/pacemaker/pcmk_sched_ordering.c
===================================================================
--- pacemaker-2.1.2+20211124.ada5c3b36.orig/lib/pacemaker/pcmk_sched_ordering.c
+++ pacemaker-2.1.2+20211124.ada5c3b36/lib/pacemaker/pcmk_sched_ordering.c
@@ -250,7 +250,7 @@ get_ordering_resource(xmlNode *xml, cons
if (rsc == NULL) {
pcmk__config_err("Ignoring constraint '%s' because resource '%s' "
"does not have an instance '%s'",
- "'%s'", ID(xml), rsc_id, instance_id);
+ ID(xml), rsc_id, instance_id);
return NULL;
}
}