X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fvmem.c;h=2ab7dda79906cc534ad8c35a544d149f449ba212;hb=65cb3a7d85bb9e8132fcbe29a4c7cf0602c999e3;hp=ffe1826afb981270cb3fcbefe17b279baf647636;hpb=1ecde57a53fc7c50e6b0139ad745b868413d420c;p=collectd.git diff --git a/src/vmem.c b/src/vmem.c index ffe1826a..2ab7dda7 100644 --- a/src/vmem.c +++ b/src/vmem.c @@ -26,14 +26,14 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #if KERNEL_LINUX static const char *config_keys[] = {"Verbose"}; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static int verbose_output = 0; +static int verbose_output; /* #endif KERNEL_LINUX */ #else @@ -104,9 +104,7 @@ static int vmem_read(void) { fh = fopen("/proc/vmstat", "r"); if (fh == NULL) { - char errbuf[1024]; - ERROR("vmem plugin: fopen (/proc/vmstat) failed: %s", - sstrerror(errno, errbuf, sizeof(errbuf))); + ERROR("vmem plugin: fopen (/proc/vmstat) failed: %s", STRERRNO); return -1; }