summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b82676)
raw | patch | inline | side by side (parent: 1b82676)
author | Dagobert Michelsen <dam@opencsw.org> | |
Thu, 28 May 2015 10:54:11 +0000 (12:54 +0200) | ||
committer | Dagobert Michelsen <dam@opencsw.org> | |
Thu, 28 May 2015 10:54:11 +0000 (12:54 +0200) |
src/zone.c | patch | blob | history |
diff --git a/src/zone.c b/src/zone.c
index 185a57e944f53d2409d771ec4d37444cc824aec9..1781775ff90b68a5a4abba5af4792ea086175b40 100644 (file)
--- a/src/zone.c
+++ b/src/zone.c
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);
}