X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fzone.c;h=cd804f7474db086eb5935e12f91899113db93efa;hp=3cd05347b2a1e9cd21b86c6762d61804dbc926b0;hb=54619dc85fd308b21ed09a0271e5c7383c7921b9;hpb=936d749328d399463f2bbb5ec3d07cd3a271a7c7 diff --git a/src/zone.c b/src/zone.c index 3cd05347..cd804f74 100644 --- a/src/zone.c +++ b/src/zone.c @@ -33,13 +33,13 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include #include -#include "utils_avltree.h" +#include "utils/avltree/avltree.h" #define MAX_PROCFS_PATH 40 #define FRC2PCT(pp) (((float)(pp)) / 0x8000 * 100) @@ -68,9 +68,7 @@ static int zone_read_procfile(char const *pidstr, char const *name, void *buf, } if (sread(fd, buf, bufsize) != 0) { - char errbuf[1024]; - ERROR("zone plugin: Reading \"%s\" failed: %s", procfile, - sstrerror(errno, errbuf, sizeof(errbuf))); + ERROR("zone plugin: Reading \"%s\" failed: %s", procfile, STRERRNO); close(fd); return 1; }