From: Roman Vasiyarov Date: Mon, 25 Apr 2011 17:34:23 +0000 (+0400) Subject: cpupowerutils: increase MAX_LINE_LEN X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76b659a31df5174d71832b7882ef31b32e1f8d59;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Dominik Brodowski --- diff --git a/tools/power/cpupower/lib/sysfs.c b/tools/power/cpupower/lib/sysfs.c index 9a35456ba6b2..870713a75a81 100644 --- a/tools/power/cpupower/lib/sysfs.c +++ b/tools/power/cpupower/lib/sysfs.c @@ -17,7 +17,7 @@ #include "cpufreq.h" #define PATH_TO_CPU "/sys/devices/system/cpu/" -#define MAX_LINE_LEN 255 +#define MAX_LINE_LEN 4096 #define SYSFS_PATH_MAX 255