cpupowerutils: increase MAX_LINE_LEN
Roman Vasiyarov [Mon, 25 Apr 2011 17:34:23 +0000 (21:34 +0400)]
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>

tools/power/cpupower/lib/sysfs.c

index 9a35456..870713a 100644 (file)
@@ -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