summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2aefd2f)
raw | patch | inline | side by side (parent: 2aefd2f)
author | Florian Forster <octo@collectd.org> | |
Mon, 19 Aug 2013 15:04:11 +0000 (17:04 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 19 Aug 2013 15:08:10 +0000 (17:08 +0200) |
The appropriate log messages have been demoted to WARNING.
Github: #305
Github: #305
src/zfs_arc.c | patch | blob | history |
diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index aa900193b834e32b5d71c282f11663fe824a4e47..cc988625b32178a005222befd9dccae0898270e5 100644 (file)
--- a/src/zfs_arc.c
+++ b/src/zfs_arc.c
tmp = get_kstat_value (ksp, (char *)kstat_value);
if (tmp == -1LL)
{
- ERROR ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value);
+ WARNING ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value);
return (-1);
}
tmp = get_kstat_value (ksp, (char *)kstat_value);
if (tmp == -1LL)
{
- ERROR ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value);
+ WARNING ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value);
return (-1);
}
za_read_gauge (ksp, "l2_size", "cache_size", "L2");
/* Operations */
- za_read_derive (ksp, "allocated","cache_operation", "allocated");
za_read_derive (ksp, "deleted", "cache_operation", "deleted");
+#if __FreeBSD__
+ za_read_derive (ksp, "allocated","cache_operation", "allocated");
za_read_derive (ksp, "stolen", "cache_operation", "stolen");
+#endif
/* Issue indicators */
za_read_derive (ksp, "mutex_miss", "mutex_operations", "miss");