diff options
Diffstat (limited to '')
-rw-r--r-- | src/collectors/debugfs.plugin/sys_devices_virtual_powercap.c (renamed from collectors/debugfs.plugin/sys_devices_virtual_powercap.c) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/debugfs.plugin/sys_devices_virtual_powercap.c b/src/collectors/debugfs.plugin/sys_devices_virtual_powercap.c index ee261c27f..a5dfb7550 100644 --- a/collectors/debugfs.plugin/sys_devices_virtual_powercap.c +++ b/src/collectors/debugfs.plugin/sys_devices_virtual_powercap.c @@ -27,7 +27,7 @@ static struct zone_t *get_rapl_zone(const char *control_type __maybe_unused, str snprintfz(temp, FILENAME_MAX, "%s/%s", dirname, "name"); char name[FILENAME_MAX + 1] = ""; - if (read_file(temp, name, sizeof(name) - 1) != 0) + if (read_txt_file(temp, name, sizeof(name)) != 0) return NULL; char *trimmed = trim(name); |