From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> The tracefs_instance_set_buffer_size() function, when passed an update for an individual CPU, writes in "val" and not val (the string that holds the value to set). This is obviously wrong. Fix it. Fixes: 48c026fbb430e ("libtracefs: Add tracefs_instance_set_buffer_size() API") Reported-by: Ching-lin Yu <chinglinyu@xxxxxxxxxx> Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- src/tracefs-instance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracefs-instance.c b/src/tracefs-instance.c index 6905f61ff929..57f5c7f9a000 100644 --- a/src/tracefs-instance.c +++ b/src/tracefs-instance.c @@ -419,7 +419,7 @@ int tracefs_instance_set_buffer_size(struct tracefs_instance *instance, size_t s return ret; } - ret = tracefs_instance_file_write(instance, path, "val"); + ret = tracefs_instance_file_write(instance, path, val); free(path); } free(val); -- 2.35.1