File pacemaker-log-spelling-messages-comments.patch of Package pacemaker.14737

commit 7ac22b338a194851c9a801cd710f7eddb145c087
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Tue May 23 10:16:22 2017 -0500

    Log: various: fix spelling in messages and comments

Index: pacemaker/crmd/control.c
===================================================================
--- pacemaker.orig/crmd/control.c
+++ pacemaker/crmd/control.c
@@ -184,7 +184,7 @@ do_shutdown(long long action,
         if (is_set(fsa_input_register, pe_subsystem->flag_connected)) {
             crm_info("Terminating the %s", pe_subsystem->name);
             if (stop_subsystem(pe_subsystem, TRUE) == FALSE) {
-                /* its gone... */
+                /* It's gone ... */
                 crm_err("Faking %s exit", pe_subsystem->name);
                 clear_bit(fsa_input_register, pe_subsystem->flag_connected);
             } else {
@@ -589,12 +589,12 @@ do_startup(long long action,
         finalization_timer->callback = crm_timer_popped;
         finalization_timer->repeat = FALSE;
         /* for possible enabling... a bug in the join protocol left
-         *    a slave in S_PENDING while we think its in S_NOT_DC
+         *    a slave in S_PENDING while we think it's in S_NOT_DC
          *
          * raising I_FINALIZED put us into a transition loop which is
          *    never resolved.
          * in this loop we continually send probes which the node
-         *    NACK's because its in S_PENDING
+         *    NACK's because it's in S_PENDING
          *
          * if we have nodes where heartbeat is active but the
          *    CRM is not... then this will be handled in the
Index: pacemaker/crmd/fsa_defines.h
===================================================================
--- pacemaker.orig/crmd/fsa_defines.h
+++ pacemaker/crmd/fsa_defines.h
@@ -93,7 +93,7 @@ Description:
       The election algorithm has been adapted from
       http://www.cs.indiana.edu/cgi-bin/techreports/TRNNN.cgi?trnum=TR521
 
-      Loosly known as the Bully Algorithm, its major points are:
+      Loosely known as the Bully Algorithm, its major points are:
       - Election is initiated by any node (N) notices that the controller
 	is no longer responding
       - Concurrent multiple elections are possible
Index: pacemaker/cts/CM_lha.py
===================================================================
--- pacemaker.orig/cts/CM_lha.py
+++ pacemaker/cts/CM_lha.py
@@ -149,7 +149,7 @@ class crm_lha(ClusterManager):
 
         self.ShouldBeStatus[node] = "up"
 
-        # check the output first - because syslog-ng looses messages
+        # check the output first - because syslog-ng loses messages
         if string.find(out, 'S_NOT_DC') != -1:
             # Up and stable
             return 2
Index: pacemaker/include/crm/cluster/internal.h
===================================================================
--- pacemaker.orig/include/crm/cluster/internal.h
+++ pacemaker/include/crm/cluster/internal.h
@@ -76,10 +76,9 @@ struct crm_ais_quorum_resp_s {
 /* *INDENT-OFF* */
 enum crm_proc_flag {
     crm_proc_none      = 0x00000001,
-    /* These values are sent over the network by the legacy plugin
-     * Therefor changing any of these values is going to break compatibility
-     *
-     * So don't
+    /* @COMPAT These values are sent over the network by the legacy plugin.
+     * Therefore, changing any of these values is going to break compatibility.
+     * So don't.
      */
 
     /* 3 messaging types */
Index: pacemaker/include/crm/msg_xml.h
===================================================================
--- pacemaker.orig/include/crm/msg_xml.h
+++ pacemaker/include/crm/msg_xml.h
@@ -236,6 +236,8 @@
 #  define XML_LRM_TAG_RSC_OP		"lrm_rsc_op"
 #  define XML_AGENT_ATTR_CLASS		"class"
 #  define XML_AGENT_ATTR_PROVIDER	"provider"
+
+/* @COMPAT This was never used but is kept for API compatibility */
 #  define XML_LRM_TAG_ATTRIBUTES	"attributes"
 
 #  define XML_CIB_ATTR_REPLACE       	"replace"
Index: pacemaker/lib/ais/plugin.c
===================================================================
--- pacemaker.orig/lib/ais/plugin.c
+++ pacemaker/lib/ais/plugin.c
@@ -629,7 +629,7 @@ pcmk_startup(struct corosync_api_v1 *ini
         }
 #if 0
         /* system() is not thread-safe, can't call from here
-         * Actually, its a pretty hacky way to try and achieve this anyway
+         * Actually, it's a pretty hacky way to try and achieve this anyway
          */
         if (system("echo 1 > /proc/sys/kernel/core_uses_pid") != 0) {
             ais_perror("Could not enable /proc/sys/kernel/core_uses_pid");
@@ -1144,7 +1144,7 @@ pcmk_shutdown(void)
 
     send_cluster_id();
     ais_notice("Shutdown complete");
-    /* TODO: Add back the logsys flush call once its written */
+    /* TODO: Add back the logsys flush call once it's written */
 
     return 0;
 }
Index: pacemaker/lib/cluster/heartbeat.c
===================================================================
--- pacemaker.orig/lib/cluster/heartbeat.c
+++ pacemaker/lib/cluster/heartbeat.c
@@ -267,7 +267,7 @@ convert_xml_child(HA_Message * msg, xmlN
         goto done;
     }
 
-    len = (orig * 1.1) + 600;   /* recomended size */
+    len = (orig * 1.1) + 600;   /* recommended size */
 
     compressed = malloc(len);
     rc = BZ2_bzBuffToBuffCompress(compressed, &len, buffer, orig, CRM_BZ2_BLOCKS, 0, CRM_BZ2_WORK);
Index: pacemaker/lib/common/utils.c
===================================================================
--- pacemaker.orig/lib/common/utils.c
+++ pacemaker/lib/common/utils.c
@@ -2388,7 +2388,7 @@ crm_compress_string(const char *data, in
     struct timespec before_t;
 
     if(max == 0) {
-        max = (length * 1.1) + 600; /* recomended size */
+        max = (length * 1.1) + 600; /* recommended size */
     }
 
 #ifdef CLOCK_MONOTONIC
Index: pacemaker/lib/pengine/utils.c
===================================================================
--- pacemaker.orig/lib/pengine/utils.c
+++ pacemaker/lib/pengine/utils.c
@@ -1362,7 +1362,7 @@ sort_op_by_callid(gconstpointer a, gcons
         /* We have duplicate lrm_rsc_op entries in the status
          *    section which is unliklely to be a good thing
          *    - we can handle it easily enough, but we need to get
-         *    to the bottom of why its happening.
+         *    to the bottom of why it's happening.
          */
         pe_err("Duplicate lrm_rsc_op entries named %s", a_xml_id);
         sort_return(0, "duplicate");
@@ -1426,7 +1426,7 @@ sort_op_by_callid(gconstpointer a, gcons
          * some pending operations (ie. a start) may have been superseded
          *   by a subsequent stop
          *
-         * [a|b]_id == -1 means its a shutdown operation and _always_ comes last
+         * [a|b]_id == -1 means it's a shutdown operation and _always_ comes last
          */
         if (safe_str_neq(a_uuid, b_uuid) || a_id == b_id) {
             /*
@@ -1797,7 +1797,7 @@ order_actions(action_t * lh_action, acti
 
     crm_trace("Ordering Action %s before %s", lh_action->uuid, rh_action->uuid);
 
-    /* Ensure we never create a dependency on ourselves... its happened */
+    /* Ensure we never create a dependency on ourselves... it's happened */
     CRM_ASSERT(lh_action != rh_action);
 
     /* Filter dups, otherwise update_action_states() has too much work to do */
Index: pacemaker/pengine/utilization.c
===================================================================
--- pacemaker.orig/pengine/utilization.c
+++ pacemaker/pengine/utilization.c
@@ -152,7 +152,7 @@ check_capacity(gpointer key, gpointer va
         CRM_ASSERT(data->rsc_id);
         CRM_ASSERT(data->node);
 
-        crm_debug("Node %s has no enough %s for %s: required=%d remaining=%d",
+        crm_debug("Node %s does not have enough %s for %s: required=%d remaining=%d",
                   data->node->details->uname, (char *)key, data->rsc_id, required, remaining);
         data->is_enough = FALSE;
     }
@@ -382,7 +382,9 @@ process_utilization(resource_t * rsc, no
                     }
 
                     if (have_enough_capacity(node, rscs_id, unallocated_utilization) == FALSE) {
-                        pe_rsc_debug(rsc, "Resource %s and its colocated resources cannot be allocated to node %s: no enough capacity",
+                        pe_rsc_debug(rsc,
+                                     "Resource %s and its colocated resources"
+                                     " cannot be allocated to node %s: not enough capacity",
                                      rsc->id, node->details->uname);
                         resource_location(rsc, node, -INFINITY, "__limit_utilization__", data_set);
                     }
@@ -408,7 +410,9 @@ process_utilization(resource_t * rsc, no
                 }
 
                 if (have_enough_capacity(node, rsc->id, rsc->utilization) == FALSE) {
-                    pe_rsc_debug(rsc, "Resource %s cannot be allocated to node %s: no enough capacity",
+                    pe_rsc_debug(rsc,
+                                 "Resource %s cannot be allocated to node %s:"
+                                 " not enough capacity",
                                  rsc->id, node->details->uname);
                     resource_location(rsc, node, -INFINITY, "__limit_utilization__", data_set);
                 }
openSUSE Build Service is sponsored by