X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnuma.c;h=c68fb8693a4e244cf497305c1e9516e264be200a;hb=0b7cd83a5e6bac068ea83a88a5ddcfb07c09fbec;hp=56ea707ccf648cc5b433add6af85a3d5344945fd;hpb=0eff2a882a9265fd59d4f7a265c6b6810acb0032;p=collectd.git diff --git a/src/numa.c b/src/numa.c index 56ea707c..c68fb869 100644 --- a/src/numa.c +++ b/src/numa.c @@ -66,9 +66,8 @@ static int numa_read_node(int node) /* {{{ */ fh = fopen(path, "r"); if (fh == NULL) { - char errbuf[1024]; ERROR("numa plugin: Reading node %i failed: open(%s): %s", node, path, - sstrerror(errno, errbuf, sizeof(errbuf))); + STRERRNO); return -1; } @@ -137,9 +136,7 @@ static int numa_init(void) /* {{{ */ break; } else /* ((status != 0) && (errno != ENOENT)) */ { - char errbuf[1024]; - ERROR("numa plugin: stat(%s) failed: %s", path, - sstrerror(errno, errbuf, sizeof(errbuf))); + ERROR("numa plugin: stat(%s) failed: %s", path, STRERRNO); return -1; } }