Skip to content

Commit

Permalink
cpupowerutils: increase MAX_LINE_LEN
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roman Vasiyarov authored and Dominik Brodowski committed Jul 29, 2011
1 parent ee3db6f commit 76b659a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/cpupower/lib/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 76b659a

Please sign in to comment.