From: Pavel Rochnyack Date: Wed, 29 May 2019 15:45:03 +0000 (+0700) Subject: virt plugin: minor updates after review X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7eb098e42b5f22202495ab396ef1f9bf12d251f2;p=collectd.git virt plugin: minor updates after review --- diff --git a/src/collectd.conf.in b/src/collectd.conf.in index 7f09c5cc..f09f373d 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -1684,7 +1684,7 @@ # InterfaceFormat name # PluginInstanceFormat name # Instances 1 -# ExtraStats "cpu_util disk disk_err domain_state fs_info job_stats_background pcpu perf vcpupin disk_physical disk_allocation disk_capacity" +# ExtraStats "cpu_util disk disk_err domain_state fs_info job_stats_background pcpu perf vcpu vcpupin disk_physical disk_allocation disk_capacity memory" # PersistentNotification false # diff --git a/src/virt.c b/src/virt.c index 7e7e0578..e14f7d6c 100644 --- a/src/virt.c +++ b/src/virt.c @@ -946,7 +946,8 @@ static void memory_stats_submit(gauge_t value, virDomainPtr dom, "last_update", "disk_caches"}; if ((tag_index < 0) || (tag_index >= (int)STATIC_ARRAY_SIZE(tags))) { - ERROR("virt plugin: Array index out of bounds: tag_index = %d", tag_index); + ERROR(PLUGIN_NAME " plugin: Array index out of bounds: tag_index = %d", + tag_index); return; }