File pacemaker-crm_perror-appends-a-colon-to-its-fmt-argument.patch of Package pacemaker.14737
commit ffba43cf28cecf1860242dc7cce2e14ba4288a10
Author: Ferenc Wágner <wferi@debian.org>
Date: Mon Nov 21 15:20:35 2016 +0100
crm_perror appends a colon to its fmt argument
diff --git a/lib/common/strings.c b/lib/common/strings.c
index 67cee12d0..298a23729 100644
--- a/lib/common/utils.c
+++ b/lib/common/utils.c
@@ -109,7 +109,7 @@ crm_int_helper(const char *text, char **end_text)
crm_err("Conversion of %s was clipped: %lld", text, result);
} else if (errno != 0) {
- crm_perror(LOG_ERR, "Conversion of %s failed:", text);
+ crm_perror(LOG_ERR, "Conversion of %s failed", text);
}
if (local_end_text != NULL && local_end_text[0] != '\0') {
diff --git a/lib/common/xml.c b/lib/common/xml.c
index a6a6d0a45..3bdc519d7 100644
--- a/lib/common/xml.c
+++ b/lib/common/xml.c
@@ -3022,12 +3022,12 @@ write_xml_stream(xmlNode * xml_node, const char *filename, FILE * stream, gboole
bail:
if (fflush(stream) != 0) {
- crm_perror(LOG_ERR, "fflush for %s failed:", filename);
+ crm_perror(LOG_ERR, "fflush for %s failed", filename);
res = -1;
}
if (fsync(fileno(stream)) < 0) {
- crm_perror(LOG_ERR, "fsync for %s failed:", filename);
+ crm_perror(LOG_ERR, "fsync for %s failed", filename);
res = -1;
}