if (c_avl_get(tree, (void **)&zoneid, (void **)&ret)) {
if (!(ret = malloc(sizeof(zone_stats_t)))) {
- WARNING("no memory");
+ WARNING("zone plugin: no memory");
return(NULL);
}
if (!(key = malloc(sizeof(zoneid_t)))) {
- WARNING("no memory");
+ WARNING("zone plugin: no memory");
return(NULL);
}
*key = zoneid;
if (c_avl_insert(tree, key, ret)) {
- WARNING("error inserting into tree");
+ WARNING("zone plugin: error inserting into tree");
return(NULL);
}
}
/* size_t physmem = sysconf(_SC_PHYS_PAGES) * pagesize;*/
if (!(tree=c_avl_create((void *) zone_compare))) {
- WARNING("Failed to create tree");
+ WARNING("zone plugin: Failed to create tree");
return(NULL);
}
pagesize = sysconf(_SC_PAGESIZE);
if ((procdir = opendir("/proc")) == NULL) {
- ERROR("cannot open /proc directory\n");
+ ERROR("zone plugin: cannot open /proc directory\n");
exit(1);
}