summaryrefslogtreecommitdiffstats
path: root/src/collectors/debugfs.plugin/debugfs_zswap.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/collectors/debugfs.plugin/debugfs_zswap.c (renamed from collectors/debugfs.plugin/debugfs_zswap.c)2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/debugfs.plugin/debugfs_zswap.c b/src/collectors/debugfs.plugin/debugfs_zswap.c
index 502a04f1f..e4d956cda 100644
--- a/collectors/debugfs.plugin/debugfs_zswap.c
+++ b/src/collectors/debugfs.plugin/debugfs_zswap.c
@@ -370,7 +370,7 @@ static int debugfs_is_zswap_enabled()
snprintfz(filename, FILENAME_MAX, "/sys/module/zswap/parameters/enabled"); // host prefix is not needed here
char state[ZSWAP_STATE_SIZE + 1];
- int ret = read_file(filename, state, ZSWAP_STATE_SIZE);
+ int ret = read_txt_file(filename, state, sizeof(state));
if (unlikely(!ret && !strcmp(state, "Y"))) {
return 0;