]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Rewrite problematic language where possible
authorMatthias Runge <mrunge@redhat.com>
Tue, 1 Sep 2020 15:25:47 +0000 (17:25 +0200)
committerMatthias Runge <mrunge@redhat.com>
Tue, 1 Sep 2020 15:25:47 +0000 (17:25 +0200)
This patch leaves out rewrite master/slave from mysql and also
master from snmp.

docs/BUILD.dpdkstat.md
src/collectd-snmp.pod
src/utils/format_stackdriver/format_stackdriver.c

index 457fc0fa30bcafb9012db9c62767591cd58d88c0..582d04c6b18fa95b83eb1432c9259661041cf389 100644 (file)
@@ -217,7 +217,7 @@ See also: http://dpdk.org/doc/guides/prog_guide/multi_proc_support.html
 
  *  The same PCI device configuration should be passed to the primary process as
     the secondary process uses the same port indexes as the primary.
- *  A blacklist / whitelist of NICs isn't supported yet.
+ *  A deny-list / allow-list of NICs isn't supported yet.
  *  Plugin initialization time depends on read interval. It requires 5 read
     cycles to set up internal buffers and states. During that time no statistics
     are submitted.
index 53689c19972534a91307749474202b169d4f0f21..7a5f583df4c9a118fe95d9b416d02c74ba38d310 100644 (file)
@@ -302,8 +302,8 @@ When B<Table> is set to I<false> then this option has no effect.
 =item B<InvertMatch> I<true|false(default)>
 
 The invertmatch value should be use in combination of the Ignore option.
-It changes the behaviour of the Ignore option, from a blacklist behaviour
-when InvertMatch is set to false, to a whitelist when specified to true.
+It changes the behaviour of the Ignore option, from a deny-list behaviour
+when InvertMatch is set to false, to a allow-list when specified to true.
 
 =item B<FilterOID> I<OID>
 
index 3c45aacb42192dd2e0522178168b0950691f807c..907a23cba02c6c1a490e9d4c7ef62372b74f0a5b 100644 (file)
@@ -217,12 +217,12 @@ static int metric_type(char *buffer, size_t buffer_size, data_set_t const *ds,
     ssnprintf(buffer, buffer_size, GCM_PREFIX "%s/%s", vl->plugin, vl->type);
   }
 
-  char const *whitelist = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+  char const *allowlist = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                           "abcdefghijklmnopqrstuvwxyz"
                           "0123456789_/";
   char *ptr = buffer + strlen(GCM_PREFIX);
   size_t ok_len;
-  while ((ok_len = strspn(ptr, whitelist)) != strlen(ptr)) {
+  while ((ok_len = strspn(ptr, allowlist)) != strlen(ptr)) {
     ptr[ok_len] = '_';
     ptr += ok_len;
   }