summaryrefslogtreecommitdiffstats
path: root/collectors/debugfs.plugin/debugfs_zswap.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-20 04:49:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-20 04:49:55 +0000
commitab1bb5b7f1c3c3a7b240ab7fc8661459ecd7decb (patch)
tree7a900833aad3ccc685712c6c2a7d87576d54f427 /collectors/debugfs.plugin/debugfs_zswap.c
parentAdding upstream version 1.40.1. (diff)
downloadnetdata-ab1bb5b7f1c3c3a7b240ab7fc8661459ecd7decb.tar.xz
netdata-ab1bb5b7f1c3c3a7b240ab7fc8661459ecd7decb.zip
Adding upstream version 1.41.0.upstream/1.41.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/debugfs.plugin/debugfs_zswap.c')
-rw-r--r--collectors/debugfs.plugin/debugfs_zswap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/debugfs.plugin/debugfs_zswap.c b/collectors/debugfs.plugin/debugfs_zswap.c
index a2991b9f1..c8fc0f030 100644
--- a/collectors/debugfs.plugin/debugfs_zswap.c
+++ b/collectors/debugfs.plugin/debugfs_zswap.c
@@ -251,7 +251,7 @@ int zswap_collect_data(struct netdata_zswap_metric *metric)
snprintfz(filename, FILENAME_MAX, "%s%s", netdata_configured_host_prefix, metric->filename);
if (read_single_number_file(filename, (unsigned long long *)&metric->value)) {
- error("Cannot read file %s", filename);
+ netdata_log_error("Cannot read file %s", filename);
return 1;
}
@@ -383,7 +383,7 @@ int do_debugfs_zswap(int update_every, const char *name)
static int check_if_enabled = 1;
if (likely(check_if_enabled && debugfs_is_zswap_enabled())) {
- info("Zswap is disabled");
+ netdata_log_info("Zswap is disabled");
return 1;
}