Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
pacemaker
pacemaker-crmd-libcrmcluster-log-message.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-crmd-libcrmcluster-log-message.patch of Package pacemaker
commit 2af9bf8edb1856b8d5f0696b6b1f77c6f759c177 Author: Ken Gaillot <kgaillot@redhat.com> Date: Tue Feb 7 15:43:40 2017 -0600 Log: crmd,libcrmcluster: minor log message improvements diff --git a/crmd/lrm.c b/crmd/lrm.c index 9075fa715..1a700578f 100644 --- a/crmd/lrm.c +++ b/crmd/lrm.c @@ -936,7 +936,8 @@ notify_deleted(lrm_state_t * lrm_state, ha_msg_input_t * input, const char *rsc_ const char *from_host = crm_element_value(input->msg, F_CRM_HOST_FROM); crm_info("Notifying %s on %s that %s was%s deleted", - from_sys, from_host, rsc_id, rc == pcmk_ok ? "" : " not"); + from_sys, (from_host? from_host : "localhost"), rsc_id, + ((rc == pcmk_ok)? "" : " not")); op = construct_op(lrm_state, input->xml, rsc_id, CRMD_ACTION_DELETE); CRM_ASSERT(op != NULL); diff --git a/lib/cluster/membership.c b/lib/cluster/membership.c index cc62fb150..acefd2d30 100644 --- a/lib/cluster/membership.c +++ b/lib/cluster/membership.c @@ -32,6 +32,8 @@ #include <crm/msg_xml.h> #include <crm/stonith-ng.h> +#define s_if_plural(i) (((i) == 1)? "" : "s") + /* The peer cache remembers cluster nodes that have been seen. * This is managed mostly automatically by libcluster, based on * cluster membership events. @@ -361,8 +363,8 @@ reap_crm_member(uint32_t id, const char *name) search.uname = name ? strdup(name) : NULL; matches = g_hash_table_foreach_remove(crm_peer_cache, crm_reap_dead_member, &search); if(matches) { - crm_notice("Purged %d peers with id=%u%s%s from the membership cache", - matches, search.id, + crm_notice("Purged %d peer%s with id=%u%s%s from the membership cache", + matches, s_if_plural(matches), search.id, (search.uname? " and/or uname=" : ""), (search.uname? search.uname : ""));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor