projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-4.4' into collectd-4.5
[collectd.git]
/
src
/
common.c
diff --git
a/src/common.c
b/src/common.c
index
61a759b
..
119d284
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-537,12
+537,12
@@
long long get_kstat_value (kstat_t *ksp, char *name)
#else
if (ksp == NULL)
{
#else
if (ksp == NULL)
{
-
fprintf (stderr,
"ERROR: %s:%i: ksp == NULL\n", __FILE__, __LINE__);
+
ERROR (
"ERROR: %s:%i: ksp == NULL\n", __FILE__, __LINE__);
return (-1LL);
}
else if (ksp->ks_type != KSTAT_TYPE_NAMED)
{
return (-1LL);
}
else if (ksp->ks_type != KSTAT_TYPE_NAMED)
{
-
fprintf (stderr,
"ERROR: %s:%i: ksp->ks_type != KSTAT_TYPE_NAMED\n", __FILE__, __LINE__);
+
ERROR (
"ERROR: %s:%i: ksp->ks_type != KSTAT_TYPE_NAMED\n", __FILE__, __LINE__);
return (-1LL);
}
#endif
return (-1LL);
}
#endif