]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Update virt.c 2957/head
authorsarah <993273596@qq.com>
Wed, 17 Oct 2018 01:59:21 +0000 (09:59 +0800)
committerGitHub <noreply@github.com>
Wed, 17 Oct 2018 01:59:21 +0000 (09:59 +0800)
src/virt.c

index 39165bcf3840afb3dede0960ad90bf524ed11c13..71b5b324e5cadbd8b8779d258daf9bb57011c706 100644 (file)
@@ -1189,13 +1189,13 @@ static int get_vcpu_stats(virDomainPtr domain, unsigned short nr_virt_cpu) {
 
   virVcpuInfoPtr vinfo = calloc(nr_virt_cpu, sizeof(vinfo[0]));
   if (vinfo == NULL) {
-    ERROR(PLUGIN_NAME " plugin: malloc failed.");
+    ERROR(PLUGIN_NAME " plugin: calloc failed.");
     return -1;
   }
 
   unsigned char *cpumaps = calloc(nr_virt_cpu, cpu_map_len);
   if (cpumaps == NULL) {
-    ERROR(PLUGIN_NAME " plugin: malloc failed.");
+    ERROR(PLUGIN_NAME " plugin: calloc failed.");
     sfree(vinfo);
     return -1;
   }