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
/
lpar.c
diff --git
a/src/lpar.c
b/src/lpar.c
index
3ecf049
..
367ebcd
100644
(file)
--- a/
src/lpar.c
+++ b/
src/lpar.c
@@
-40,10
+40,10
@@
static const char *config_keys[] = {"CpuPoolStats", "ReportBySerial"};
static int config_keys_num = STATIC_ARRAY_SIZE(config_keys);
static const char *config_keys[] = {"CpuPoolStats", "ReportBySerial"};
static int config_keys_num = STATIC_ARRAY_SIZE(config_keys);
-static
_B
ool pool_stats = 0;
-static
_B
ool report_by_serial = 0;
+static
b
ool pool_stats = 0;
+static
b
ool report_by_serial = 0;
#if PERFSTAT_SUPPORTS_DONATION
#if PERFSTAT_SUPPORTS_DONATION
-static
_B
ool donate_flag = 0;
+static
b
ool donate_flag = 0;
#endif
static char serial[SYS_NMLN];
#endif
static char serial[SYS_NMLN];
@@
-76,9
+76,8
@@
static int lpar_init(void) {
sizeof(perfstat_partition_total_t),
/* number = */ 1 /* (must be 1) */);
if (status != 1) {
sizeof(perfstat_partition_total_t),
/* number = */ 1 /* (must be 1) */);
if (status != 1) {
- char errbuf[1024];
- ERROR("lpar plugin: perfstat_partition_total failed: %s (%i)",
- sstrerror(errno, errbuf, sizeof(errbuf)), status);
+ ERROR("lpar plugin: perfstat_partition_total failed: %s (%i)", STRERRNO,
+ status);
return -1;
}
return -1;
}
@@
-138,9
+137,8
@@
static int lpar_read(void) {
&lparstats, sizeof(perfstat_partition_total_t),
/* number = */ 1 /* (must be 1) */);
if (status != 1) {
&lparstats, sizeof(perfstat_partition_total_t),
/* number = */ 1 /* (must be 1) */);
if (status != 1) {
- char errbuf[1024];
- ERROR("lpar plugin: perfstat_partition_total failed: %s (%i)",
- sstrerror(errno, errbuf, sizeof(errbuf)), status);
+ ERROR("lpar plugin: perfstat_partition_total failed: %s (%i)", STRERRNO,
+ status);
return -1;
}
return -1;
}