cpufrequtils sysfs: increase MAX_LINE_LEN
PATCH 1/1 cpufrequtils sysfs: increase MAX_LINE_LEN
larger sysfs data (>255 bytes) was truncated and thus used improperly
--- lib/sysfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/sysfs.c +1 -1
@@ -18,7 +18,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/* helper function to read file from /sys into given buffer */
Signature · 1 line
1.7.4.4
Quoted 1 line · Roman Vasiyarov
larger sysfs data (>255 bytes) was truncated and thus used improperly
Thanks, patch looks good and useful. However, could you add a Signed-off-by - line, please, as per Documentation/SubmittingPatches ?
Thanks & best,
Dominik
PATCH 1/1 cpufrequtils sysfs: increase MAX_LINE_LEN
larger sysfs data (>255 bytes) was truncated and thus used improperly
Signed-off-by Roman Vasiyarov <[email protected]>
--- lib/sysfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/sysfs.c +1 -1
@@ -18,7 +18,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/* helper function to read file from /sys into given buffer */
Signature · 1 line
1.7.4.4
Applied (also to cpupowerutils).
Thanks,
Dominik