projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3175 from ccin2p3/f/collectd-redhat-spec-5.9.0
[collectd.git]
/
src
/
numa.c
diff --git
a/src/numa.c
b/src/numa.c
index
56ea707
..
dfe7a6d
100644
(file)
--- a/
src/numa.c
+++ b/
src/numa.c
@@
-26,8
+26,8
@@
#include "collectd.h"
#include "collectd.h"
-#include "common.h"
#include "plugin.h"
#include "plugin.h"
+#include "utils/common/common.h"
#if !KERNEL_LINUX
#error "No applicable input method."
#if !KERNEL_LINUX
#error "No applicable input method."
@@
-66,9
+66,8
@@
static int numa_read_node(int node) /* {{{ */
fh = fopen(path, "r");
if (fh == NULL) {
fh = fopen(path, "r");
if (fh == NULL) {
- char errbuf[1024];
ERROR("numa plugin: Reading node %i failed: open(%s): %s", node, path,
ERROR("numa plugin: Reading node %i failed: open(%s): %s", node, path,
-
sstrerror(errno, errbuf, sizeof(errbuf))
);
+
STRERRNO
);
return -1;
}
return -1;
}
@@
-137,9
+136,7
@@
static int numa_init(void) /* {{{ */
break;
} else /* ((status != 0) && (errno != ENOENT)) */
{
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;
}
}
return -1;
}
}