projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: use bool instead of _Bool
[collectd.git]
/
src
/
hugepages.c
diff --git
a/src/hugepages.c
b/src/hugepages.c
index
c5b0ecb
..
9515046
100644
(file)
--- a/
src/hugepages.c
+++ b/
src/hugepages.c
@@
-35,12
+35,12
@@
static const char g_plugin_name[] = "hugepages";
static const char g_plugin_name[] = "hugepages";
-static
_B
ool g_flag_rpt_numa = 1;
-static
_B
ool g_flag_rpt_mm = 1;
+static
b
ool g_flag_rpt_numa = 1;
+static
b
ool g_flag_rpt_mm = 1;
-static
_B
ool g_values_pages = 1;
-static
_B
ool g_values_bytes = 0;
-static
_B
ool g_values_percent = 0;
+static
b
ool g_values_pages = 1;
+static
b
ool g_values_bytes = 0;
+static
b
ool g_values_percent = 0;
#define HP_HAVE_NR 0x01
#define HP_HAVE_SURPLUS 0x02
#define HP_HAVE_NR 0x01
#define HP_HAVE_SURPLUS 0x02
@@
-185,10
+185,8
@@
static int read_syshugepages(const char *path, const char *node) {
long page_size = strtol(result->d_name + strlen(hugepages_dir),
/* endptr = */ NULL, /* base = */ 10);
if (errno != 0) {
long page_size = strtol(result->d_name + strlen(hugepages_dir),
/* endptr = */ NULL, /* base = */ 10);
if (errno != 0) {
- char errbuf[1024];
ERROR("%s: failed to determine page size from directory name \"%s\": %s",
ERROR("%s: failed to determine page size from directory name \"%s\": %s",
- g_plugin_name, result->d_name,
- sstrerror(errno, errbuf, sizeof(errbuf)));
+ g_plugin_name, result->d_name, STRERRNO);
continue;
}
continue;
}