Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpupowerutils: increase MAX_LINE_LEN

larger sysfs data (>255 bytes) was truncated and thus used improperly

[linux@dominikbrodowski.net: adapted to cpupowerutils]
Signed-off-by: Roman Vasiyarov <rvasiyarov@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

authored by

Roman Vasiyarov and committed by
Dominik Brodowski
76b659a3 ee3db6fc

+1 -1
+1 -1
tools/power/cpupower/lib/sysfs.c
··· 17 17 #include "cpufreq.h" 18 18 19 19 #define PATH_TO_CPU "/sys/devices/system/cpu/" 20 - #define MAX_LINE_LEN 255 20 + #define MAX_LINE_LEN 4096 21 21 #define SYSFS_PATH_MAX 255 22 22 23 23