File bsc#1239629-0003-Log-libcrmcluster-correctly-log-node-id.patch of Package pacemaker.38493

From 7a560f29667d64d2c1c6d1ddf86d222b177f6088 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Wed, 19 Mar 2025 01:04:16 +0100
Subject: [PATCH 3/8] Log: libcrmcluster: correctly log node id

---
 lib/cluster/cluster.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: pacemaker-2.1.7+20231219.0f7f88312/lib/cluster/cluster.c
===================================================================
--- pacemaker-2.1.7+20231219.0f7f88312.orig/lib/cluster/cluster.c
+++ pacemaker-2.1.7+20231219.0f7f88312/lib/cluster/cluster.c
@@ -10,6 +10,7 @@
 #include <crm_internal.h>
 #include <dlfcn.h>
 
+#include <inttypes.h>               // PRIu32
 #include <stdio.h>
 #include <unistd.h>
 #include <string.h>
@@ -230,7 +231,7 @@ get_node_name(uint32_t nodeid)
     }
 
     if (name == NULL) {
-        crm_notice("Could not obtain a node name for %s node with id %u",
+        crm_notice("Could not obtain a node name for %s node with id=%" PRIu32,
                    name_for_cluster_type(stack), nodeid);
     }
     return name;
openSUSE Build Service is sponsored by