X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fvirt.c;h=71b5b324e5cadbd8b8779d258daf9bb57011c706;hb=0a2172433970559cc70821e64778ce88a76b040c;hp=39165bcf3840afb3dede0960ad90bf524ed11c13;hpb=9c6c1bdb92537f307d245c52349d3f196ec4d33d;p=collectd.git diff --git a/src/virt.c b/src/virt.c index 39165bcf..71b5b324 100644 --- a/src/virt.c +++ b/src/virt.c @@ -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; }