From 7eb098e42b5f22202495ab396ef1f9bf12d251f2 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Wed, 29 May 2019 22:45:03 +0700 Subject: [PATCH] virt plugin: minor updates after review --- src/collectd.conf.in | 2 +- src/virt.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.11.0