[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'

Florian Forster octo at verplant.org
Mon Jun 4 07:52:20 CEST 2018


 src/ceph.c      |    8 ++++----
 src/intel_rdt.c |   10 +++++-----
 src/processes.c |    2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit c48faeb6823887e4d31fdcf1940c17dfc29ea70c
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date:   Mon Jun 4 00:25:33 2018 +0200

    processes plugin: const correctness
    
    src/processes.c: In function ‘ps_submit_proc_list’:
    src/processes.c:915:8: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
           {"delay-cpu", ps->delay_cpu},
            ^~~~~~~~~~~
    src/processes.c:916:8: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
           {"delay-blkio", ps->delay_blkio},
            ^~~~~~~~~~~~~
    src/processes.c:917:8: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
           {"delay-swapin", ps->delay_swapin},
            ^~~~~~~~~~~~~~
    src/processes.c:918:8: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
           {"delay-freepages", ps->delay_freepages},
            ^~~~~~~~~~~~~~~~~

commit 74d0a5a74960beccbd4bec228fd80a6960a57d50
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date:   Mon Jun 4 00:21:52 2018 +0200

    intel_rdt plugin: const correctness
    
      CC       src/intel_rdt_la-intel_rdt.lo
    src/intel_rdt.c: In function ‘rdt_read’:
    src/intel_rdt.c:407:39: warning: passing argument 2 of ‘rdt_submit_derive’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
           rdt_submit_derive(cgroup->desc, "memory_bandwidth", "local",
                                           ^~~~~~~~~~~~~~~~~~
    src/intel_rdt.c:339:51: note: expected ‘char *’ but argument is of type ‘const char *’
     static void rdt_submit_derive(char *cgroup, char *type, char *type_instance,
                                                 ~~~~~~^~~~
    src/intel_rdt.c:407:59: warning: passing argument 3 of ‘rdt_submit_derive’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
           rdt_submit_derive(cgroup->desc, "memory_bandwidth", "local",
                                                               ^~~~~~~
    src/intel_rdt.c:339:63: note: expected ‘char *’ but argument is of type ‘const char *’
     static void rdt_submit_derive(char *cgroup, char *type, char *type_instance,
                                                             ~~~~~~^~~~~~~~~~~~~
    src/intel_rdt.c:409:39: warning: passing argument 2 of ‘rdt_submit_derive’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
           rdt_submit_derive(cgroup->desc, "memory_bandwidth", "remote",
                                           ^~~~~~~~~~~~~~~~~~
    src/intel_rdt.c:339:51: note: expected ‘char *’ but argument is of type ‘const char *’
     static void rdt_submit_derive(char *cgroup, char *type, char *type_instance,
                                                 ~~~~~~^~~~
    src/intel_rdt.c:409:59: warning: passing argument 3 of ‘rdt_submit_derive’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
           rdt_submit_derive(cgroup->desc, "memory_bandwidth", "remote",
                                                               ^~~~~~~~
    src/intel_rdt.c:339:63: note: expected ‘char *’ but argument is of type ‘const char *’
     static void rdt_submit_derive(char *cgroup, char *type, char *type_instance,
                                                             ~~~~~~^~~~~~~~~~~~~

commit 2a723c6ba214cbf2ebe2a6f3ed856ab5d5805309
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date:   Mon Jun 4 00:09:07 2018 +0200

    ceph plugin: fix a few format specifiers
    
      CC       src/ceph_la-ceph.lo
    In file included from ./src/daemon/common.h:33,
                     from src/ceph.c:31:
    src/ceph.c: In function ‘cconn_handle_event’:
    src/ceph.c:1161:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
         DEBUG("ceph plugin: cconn_handle_event(name=%s,state=%d,amt=%d,ret=%d)",
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               io->d->name, io->state, io->amt, ret);
                                                ~~~
    ./src/daemon/plugin.h:396:42: note: in definition of macro ‘DEBUG’
     #define DEBUG(...) plugin_log(LOG_DEBUG, __VA_ARGS__)
                                              ^~~~~~~~~~~
    src/ceph.c:1183:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
         DEBUG("ceph plugin: cconn_handle_event(name=%s,state=%d,ret=%d)",
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               io->d->name, io->state, ret);
                                       ~~~
    ./src/daemon/plugin.h:396:42: note: in definition of macro ‘DEBUG’
     #define DEBUG(...) plugin_log(LOG_DEBUG, __VA_ARGS__)
                                              ^~~~~~~~~~~
    src/ceph.c:1209:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
         DEBUG("ceph plugin: cconn_handle_event(name=%s,state=%d,ret=%d)",
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               io->d->name, io->state, ret);
                                       ~~~
    ./src/daemon/plugin.h:396:42: note: in definition of macro ‘DEBUG’
     #define DEBUG(...) plugin_log(LOG_DEBUG, __VA_ARGS__)
                                              ^~~~~~~~~~~
    src/ceph.c:1230:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
         DEBUG("ceph plugin: cconn_handle_event(name=%s,state=%d,ret=%d)",
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               io->d->name, io->state, ret);
                                       ~~~
    ./src/daemon/plugin.h:396:42: note: in definition of macro ‘DEBUG’
     #define DEBUG(...) plugin_log(LOG_DEBUG, __VA_ARGS__)
                                              ^~~~~~~~~~~




More information about the collectd-changes mailing list