diff options
author | Roman Vasiyarov <rvasiyarov@gmail.com> | 2011-04-25 13:34:23 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2011-07-29 12:35:40 -0400 |
commit | 76b659a31df5174d71832b7882ef31b32e1f8d59 (patch) | |
tree | 288156bc7e47fd9fc01c23e97993f3b44145844d | |
parent | ee3db6fcafa0b0023c1f5242452e9e4e6e3021c6 (diff) |
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>
-rw-r--r-- | tools/power/cpupower/lib/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
17 | #include "cpufreq.h" | 17 | #include "cpufreq.h" |
18 | 18 | ||
19 | #define PATH_TO_CPU "/sys/devices/system/cpu/" | 19 | #define PATH_TO_CPU "/sys/devices/system/cpu/" |
20 | #define MAX_LINE_LEN 255 | 20 | #define MAX_LINE_LEN 4096 |
21 | #define SYSFS_PATH_MAX 255 | 21 | #define SYSFS_PATH_MAX 255 |
22 | 22 | ||
23 | 23 | ||