From: sarah <993273596@qq.com> Date: Wed, 17 Oct 2018 01:59:21 +0000 (+0800) Subject: Update virt.c X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=5f95e26447bb3105d26c3d28b782765a0a8605d5 Update virt.c --- 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; }