Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP1
pacemaker.26927
bsc#1178865-0001-Fix-crmadmin-printing-DC-quiet...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1178865-0001-Fix-crmadmin-printing-DC-quietly-if-needed.patch of Package pacemaker.26927
From 3512d4217634cc393fe8d2a529481d6998037e1c Mon Sep 17 00:00:00 2001 From: root <root@localhost.localdomain> Date: Mon, 23 Nov 2020 13:57:58 +0100 Subject: [PATCH] Fix: crmadmin: printing DC quietly if needed --- tools/crmadmin.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) Index: pacemaker-2.0.4+20200616.2deceaa3a/tools/crmadmin.c =================================================================== --- pacemaker-2.0.4+20200616.2deceaa3a.orig/tools/crmadmin.c +++ pacemaker-2.0.4+20200616.2deceaa3a/tools/crmadmin.c @@ -468,9 +468,11 @@ admin_msg_callback(const char *buffer, s } else if (DO_WHOIS_DC) { const char *dc = crm_element_value(xml, F_CRM_HOST_FROM); - printf("Designated Controller is: %s\n", dc); - if (BE_SILENT && dc != NULL) { - fprintf(stderr, "%s\n", dc); + if (dc != NULL) { + if (BE_SILENT == FALSE) { + printf("Designated Controller is: "); + } + printf("%s\n", dc); } crm_exit(CRM_EX_OK); }
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